From 6e7f2e0fac33b21502495998df5affc3194b54f0 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 27 Jan 2022 17:48:52 -0500 Subject: [PATCH] Duplicate Midi Event Timestamp bug (#5833) If two midi events arrived with the exact sample sample timestep, they would push to the end of the block along with the rest of the midi in that block. Fix it with an if/while switch on processing the midi list. Addresses #5830 --- src/surge-xt/SurgeSynthProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surge-xt/SurgeSynthProcessor.cpp b/src/surge-xt/SurgeSynthProcessor.cpp index 2794c48af12..abdd2b2051d 100644 --- a/src/surge-xt/SurgeSynthProcessor.cpp +++ b/src/surge-xt/SurgeSynthProcessor.cpp @@ -256,7 +256,7 @@ void SurgeSynthProcessor::processBlock(juce::AudioBuffer &buffer, for (int i = 0; i < buffer.getNumSamples(); i++) { - if (i == nextMidi) + while (i == nextMidi) { applyMidi(*midiIt); midiIt++;