MIDI Draw: provide a menu for Channel and Velocity

This commit is contained in:
Ben Loftis 2021-11-16 12:06:13 -06:00
parent 2a6da0113f
commit 93e68a5a00
9 changed files with 299 additions and 20 deletions

View file

@ -7033,6 +7033,8 @@ NoteCreateDrag::finished (GdkEvent* ev, bool had_movement)
length = length.round_to_subdivision (div, RoundUpMaybe);
}
#warning NUTEMPO ALERT not snapping correctly
_editor->begin_reversible_command (_("Create Note"));
_region_view->create_note_at (timepos_t (start), _drag_rect->y0(), length, ev->button.state, false);
_editor->commit_reversible_command ();
@ -7116,6 +7118,8 @@ HitCreateDrag::motion (GdkEvent* event, bool)
return;
}
#warning NUTEMPO ALERT not snapping correctly
_region_view->create_note_at (timepos_t (start), _y, length, event->button.state, false);
_last_pos = timepos_t (start);