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

VST3 parameter begin/end workaround for problems in Cubase.

This commit is contained in:
jules 2015-03-23 16:17:35 +00:00
parent 710aec4503
commit 0bb60f9c76

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