when a pianoroll shows an empty MIDI model, use the user prefs for the note range

This commit is contained in:
Paul Davis 2025-03-17 10:12:42 -06:00
parent ef8f2579c1
commit e8d4f5e06d

View file

@ -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);
}