get velocity editing working in both the cue editor and MIDI region views

Quite a bit of hairy coordinate system stuff in here that ought to be commented more
clearly
This commit is contained in:
Paul Davis 2024-09-18 12:27:43 -06:00
parent ee305a7169
commit afa15a0061
7 changed files with 65 additions and 24 deletions

View file

@ -66,6 +66,8 @@ class MidiCueEditor : public CueEditor
Temporal::Beats get_draw_length_as_beats (bool& success, Temporal::timepos_t const & position) const;
bool canvas_note_event (GdkEvent* event, ArdourCanvas::Item*);
bool canvas_velocity_base_event (GdkEvent* event, ArdourCanvas::Item*);
bool canvas_velocity_event (GdkEvent* event, ArdourCanvas::Item*);
int32_t get_grid_beat_divisions (Editing::GridType gt) const { return 1; }
int32_t get_grid_music_divisions (Editing::GridType gt, uint32_t event_state) const { return 1; }