Hi, I am new to Juce.
I want to implement something like 2 radio buttons for plugin in a way that only one out of 2 buttons is active at the same time or all can be set off.
Actually I did it with setToggleState(), added buttons to value tree state (vts) and graphically it works like a charm, however I can see that button states are not reflected on vts (checked wth getRawParameterValue()).
Te scenario is simple:
- 2 buttons are set to off by default
- I click on 1st button that is set to on with setToggleState(true)
- I click to set 2nd button on (which means that 1st button must be set off without clicking on it-> 1st button setToggleState(false) and 2nd button setToggleState(true)), it is on, and 1st is off, but vts shows that the 1st button is still on so I need to click twice on it (1st button) to force vts to see it as off.
What can I be doing wrong and how to notify value tree state/ audio processor about button state change without clicking on it?
Thanks in advance.