1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

VST3: First add Midi controller changes and then add other midi events to ensure that all-notes off events occur before any note-on event with the same sampleOffset

This commit is contained in:
hogliux 2017-10-07 14:03:23 +01:00
parent 1406de4de3
commit d95edfd770

View file

@ -2038,6 +2038,9 @@ public:
midiBuffer.clear();
if (data.inputParameterChanges != nullptr)
processParameterChanges (*data.inputParameterChanges);
#if JucePlugin_WantsMidiInput
if (data.inputEvents != nullptr)
MidiEventList::toMidiBuffer (midiBuffer, *data.inputEvents);
@ -2237,9 +2240,6 @@ private:
pluginInstance->setNonRealtime (data.processMode == Vst::kOffline);
if (data.inputParameterChanges != nullptr)
processParameterChanges (*data.inputParameterChanges);
#if JUCE_DEBUG && ! JucePlugin_ProducesMidiOutput
const int numMidiEventsComingIn = midiBuffer.getNumEvents();
#endif