triggerbox: fix midi timing in the case where a note-off arrives exactly at the end of the clip (amends cbbe5)

This commit is contained in:
Ben Loftis 2022-02-14 21:26:08 -06:00
parent 5a19a4fb4a
commit 9abc4642ed
1 changed files with 1 additions and 1 deletions

View File

@ -2508,7 +2508,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));