sure, here it is.
This is an extended plug that turns track controls into FX parameters
=> Reproduction:
- put this VST on a track
- VST => Reaper update: change volume from the VST (one of its parameters)
=> OK: volume updated in reaper
- Reaper => VST update: change the volume of the related track
=> GUI KO: the VST detects the change and update its "volume" FX param, however you have to click the "UI" button to see this change in the generic "UI"
This is an IPlug instance (a VST framework a cool guy have made) => the VST informs Reaper it changes the param value with:
Code:
IGraphics* gui = this->GetGUI();
if (gui)
{
gui->SetParameterFromPlug(_prmIdx, _value, false);
}
GetParam(_prmIdx)->Set(_value);
InformHostOfParamChange(_prmIdx, _value);
Remark: I've unplugged the GUI in this build, but with its own GUI, everything is OK