From eafe2f72a6492e7156c6a4f2771eb7ceb264e97b Mon Sep 17 00:00:00 2001 From: Pavol Markovic Date: Mon, 5 Feb 2024 22:50:35 +1300 Subject: [PATCH] CoreMIDI: Fix time delta for messages within same MIDI packet --- RtMidi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RtMidi.cpp b/RtMidi.cpp index 2216d50..45ae209 100644 --- a/RtMidi.cpp +++ b/RtMidi.cpp @@ -1116,6 +1116,8 @@ static void midiInputCallback( const MIDIPacketList *list, void *procRef, void * std::cerr << "\nMidiInCore: message queue limit reached!!\n\n"; } message.bytes.clear(); + // All subsequent messages within same MIDI packet will have time delta 0 + message.timeStamp = 0.0; } iByte += size; }