mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
fix 5498 -- use note length from step-entry with midi keybd.
This commit is contained in:
parent
db39613238
commit
04967de3af
1 changed files with 3 additions and 1 deletions
|
|
@ -255,7 +255,9 @@ StepEditor::step_add_note (uint8_t channel, uint8_t pitch, uint8_t velocity, Evo
|
|||
assert (step_edit_region);
|
||||
assert (step_edit_region_view);
|
||||
|
||||
if (beat_duration == 0.0) {
|
||||
if (beat_duration == 0.0 && step_editor) {
|
||||
beat_duration = step_editor->note_length();
|
||||
} else if (beat_duration == 0.0) {
|
||||
bool success;
|
||||
beat_duration = _editor.get_grid_type_as_beats (success, step_edit_insert_position);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue