allow a trigger slot to use an empty region

hopefully there are no complications from this :(
This commit is contained in:
Paul Davis 2025-04-16 20:43:37 -06:00
parent 9415dad9cc
commit ef0a8ba524

View file

@ -2470,7 +2470,11 @@ MIDITrigger::setup_event_indices ()
{
RTMidiBufferBeats* rt = rt_midibuffer.load ();
assert (rt->size() > 0);
if (rt->size() == 0) {
first_event_index = 0;
last_event_index = 0;
return;
}
if (rt->size() == 1) {
first_event_index = 0;