Browse Source

VST3 parameter begin/end workaround for problems in Cubase.

tags/2021-05-28
jules 11 years ago
parent
commit
0bb60f9c76
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 8
- 1
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -265,7 +265,14 @@ public:
//==============================================================================
void audioProcessorParameterChangeGestureBegin (AudioProcessor*, int index) override { beginEdit ((Vst::ParamID) index); }
void audioProcessorParameterChanged (AudioProcessor*, int index, float newValue) override { performEdit ((Vst::ParamID) index, (double) newValue); }
void audioProcessorParameterChanged (AudioProcessor*, int index, float newValue) override
{
// NB: Cubase has problems if performEdit is called without setParamNormalized
EditController::setParamNormalized ((Vst::ParamID) index, (double) newValue);
performEdit ((Vst::ParamID) index, (double) newValue);
}
void audioProcessorParameterChangeGestureEnd (AudioProcessor*, int index) override { endEdit ((Vst::ParamID) index); }
void audioProcessorChanged (AudioProcessor*) override


Loading…
Cancel
Save