MIDI Draw: Provide a menu to explicitly select note-length

ToDo: 3,5,7's?  keyboard shortcuts?
This commit is contained in:
Ben Loftis 2021-11-15 17:36:05 -06:00
parent 5ba6e14310
commit 2a6da0113f
11 changed files with 259 additions and 25 deletions

View file

@ -272,7 +272,7 @@ StepEditor::step_add_note (uint8_t channel, uint8_t pitch, uint8_t velocity, Tem
beat_duration = StepEntry::instance().note_length();
} else if (beat_duration == 0.0) {
bool success;
beat_duration = _editor.get_grid_type_as_beats (success, step_edit_insert_position);
beat_duration = _editor.get_draw_length_as_beats (success, step_edit_insert_position);
if (!success) {
return -1;
@ -387,7 +387,7 @@ StepEditor::step_edit_rest (Temporal::Beats beats)
bool success;
if (beats == 0.0) {
beats = _editor.get_grid_type_as_beats (success, step_edit_insert_position);
beats = _editor.get_draw_length_as_beats (success, step_edit_insert_position);
} else {
success = true;
}