I’m trying to update multiple ‘linked’ controls so they show/have the same value when one of them is changed. I have 2 sliders that can be linked so both should be updated when the other one is dragged.
I’m not sure how to do this correctly in iPlug2. What I do now is check for param changes in OnParamChangeUI. Then I set the linked control param to the same value as the other one:
SetParameterValue(kParamSlider1, value); refSlider1->SetDirty(false); // only update ui, don't push
This seems to almost work. Only, when automating the parameter in StudioOne 4 / Win, the automation randomly turns off like when changing a control manually that is being automated by the host.
What is the correct way of doing this?