_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.
PianoRollKeyWidget* start_key
Start key pressed.
PianoRollKeyWidget* last_key
Last key hovered.
GtkBox* midi_arranger_box
Piano roll.
int last_mid_note
Note in the middle of the arranger (0-127).
int note_pressed
Note pressed.
int note_released
Note released.
double px_per_key
Pixel height of each key, determined by the zoom level.
double 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::last_mid_note

Note in the middle of the arranger (0-127).

This will be used to scroll to each refresh.

int _MidiEditorSpaceWidget::note_pressed

Note pressed.

Used for note presses (see MidiEditorSpaceKeyWidget).

int _MidiEditorSpaceWidget::note_released

Note released.

Used for note presses (see MidiEditorSpaceKeyWidget).