It is not possible to directly convert the code above to C++, as it is mostly describing a GUI layout, and has very little logic. A library for creating GUIs would be required, like Qt or wxWidgets, to draw the piano roll in C++.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence