Browse Source

Fix automation issue when automation points are edited before opening editor. See: http://www.juce.com/forum/topic/automation-issue-cubase/nuendo#new

tags/2021-05-28
hogliux 10 years ago
parent
commit
2b27f5b36e
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 12
- 0
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -231,6 +231,18 @@ public:
}; };
//============================================================================== //==============================================================================
tresult PLUGIN_API setComponentState (IBStream*) override
{
// Cubase and Nuendo need to inform the host of the current parameter values
if (AudioProcessor* const pluginInstance = getPluginInstance())
{
for (int i = 0; i < pluginInstance->getNumParameters(); ++i)
setParamNormalized ((Vst::ParamID) i, (double) pluginInstance->getParameter (i));
}
return kResultFalse;
}
void setAudioProcessor (JuceAudioProcessor* audioProc) void setAudioProcessor (JuceAudioProcessor* audioProc)
{ {
if (audioProcessor != audioProc) if (audioProcessor != audioProc)


Loading…
Cancel
Save