From d95edfd770ec1976b6a0354413016eb25ca9960d Mon Sep 17 00:00:00 2001 From: hogliux Date: Sat, 7 Oct 2017 14:03:23 +0100 Subject: [PATCH] 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 --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 3084b3746c..88e873b744 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -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