I am trying to figure out how to apply a modifier to a plugin parameter. Ive got it mostly working except for this one issue: After applying the modifier and pressing a midi key, the note plays and the modifier works, however the sound just keeps going and going even after lifting off the midi key.
Here is how I am applying the modifier:
auto modifier = track->getModifierList().insertModifier(juce::ValueTree(tracktion_engine::IDs::LFO), -1, nullptr); // this method returns an AutomatableParameter of the plugin // right now I am testing using the volume parameter of the volume and pan plugin auto pluginParameter = viewModel.getSelectedItem(); pluginParameter->addModifier(*modifier);
As I said the modifier works, I can hear the volume being raised and lowered with the LFO, however the note just keeps going even after releasing the midi key. I figure I must be missing something after applying the modifier but since there arent any modifier examples I am not too sure what it is I need to do.
restarting playback after adding the modifier fixed it