13
0

triggerbox: fix end-handling of MIDI triggers (again)

If we reach the last event in a MIDI file, the test to enter Playout
is whether the last event is *before* not at or later to our computed
final beat.
This commit is contained in:
Paul Davis 2022-02-14 18:07:54 -07:00
parent 91e7361e08
commit cbbe595162

View File

@ -2516,7 +2516,7 @@ MIDITrigger::midi_run (BufferSet& bufs, samplepos_t start_sample, samplepos_t en
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1 reached end, leb %2 les %3 fb %4 dl %5\n", index(), last_event_timeline_beats, last_event_samples, final_beat, data_length));
if (last_event_timeline_beats >= final_beat) {
if (last_event_timeline_beats < final_beat) {
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1 entering playout because ... leb %2 >= fb %3\n", index(), last_event_timeline_beats, final_beat));