AU parameter automation issue - ToggleButton does not write

So for Logic the problem boils down to

param.beginChangeGesture();
param.setValueNotifyingHost (newValue);
param.endChangeGesture();

no longer working if all the calls happen consecutively. If you instead do

void mouseDown (const MouseEvent&) override
{
    param.beginChangeGesture();
}

void mouseUp (const MouseEvent&) override
{
    param.setValueNotifyingHost (newValue);
    param.endChangeGesture();
}

then things work as expected. This doesn’t, however, fix parameter toggles from Logic’s autogenerated UI.

3 Likes