From 8dd6c6112599d6388523a6f503f28d1e954b4fe2 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Tue, 23 Jul 2019 15:21:11 +0100 Subject: [PATCH] VST3: Only set JUCE_VST3_EMULATE_MIDI_CC_WITH_PARAMETERS by default if the plug-in accepts MIDI --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 fef22f66cb..097b3e77ec 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -57,7 +57,9 @@ namespace Vst2 #endif #ifndef JUCE_VST3_EMULATE_MIDI_CC_WITH_PARAMETERS - #define JUCE_VST3_EMULATE_MIDI_CC_WITH_PARAMETERS 1 + #if JucePlugin_WantsMidiInput + #define JUCE_VST3_EMULATE_MIDI_CC_WITH_PARAMETERS 1 + #endif #endif #if JUCE_VST3_CAN_REPLACE_VST2