_MidiEditorSpaceWidget struct

The piano roll widget is the whole space inside the clip editor tab when a MIDI region is selected.

Contents

Public variables

GtkBox* piano_roll_keys_box
Box to add piano roll keys.
GtkBox* midi_arranger_box
Piano roll.
int note_pressed
Note pressed.
int note_released
Note released.
int px_per_key
Pixel height of each key, determined by the zoom level.
int total_key_px
Pixel height of all keys combined.

Variable documentation

GtkBox* _MidiEditorSpaceWidget::piano_roll_keys_box

Box to add piano roll keys.

It should contain boxes that have PianoRollKeyLabelWidget on the left and PianoRollKeyWidget on the right.

In drum mode, PianoRollKeyWidget will be set to invisible.

int _MidiEditorSpaceWidget::note_pressed

Note pressed.

Used for note presses (see MidiEditorSpaceKeyWidget).

int _MidiEditorSpaceWidget::note_released

Note released.

Used for note presses (see MidiEditorSpaceKeyWidget).