mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-15 18:06:06 +01:00
when a pianoroll shows an empty MIDI model, use the user prefs for the note range
This commit is contained in:
parent
ef8f2579c1
commit
e8d4f5e06d
1 changed files with 7 additions and 0 deletions
|
|
@ -1154,6 +1154,13 @@ MidiView::model_changed()
|
|||
}
|
||||
}
|
||||
|
||||
/* Pick a reasonable default range if the model is mepty */
|
||||
|
||||
if (notes.empty()) {
|
||||
low_note = UIConfiguration::instance().get_default_lower_midi_note();
|
||||
hi_note = UIConfiguration::instance().get_default_upper_midi_note();
|
||||
}
|
||||
|
||||
maybe_set_note_range (low_note, hi_note);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue