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:
parent
710aec4503
commit
0bb60f9c76
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue