My plugin works fine in GUI mode, but for non-GUI situations in my test DAWs Reaper and Ableton, its not behaving how I want it to, despite giving the toggle buttons a RadioGroupID.
In Ableton, when I single-click the ToggleButton it seems to work but it does not visually turn off the previous ToggleButton. But it does when I double-click it.
In Reaper when I click the ToggleButton it does not turn off the previous one, in fact I can turn on all my Radio ToggleButtons, and they don’t act like they are mutually exclusive.
I’m struggling to find a way to listen to the changes that happen in the Processor non-GUI mode and pick them up in the Editor, despite having seemingly the appropriate attachments (below).
Any ideas on how I can approach this in a threadsafe way?
Button definitions:
mBlueToggleButton.addListener(this);
mBlueToggleButton.setToggleable(true);
mBlueToggleButton.setClickingTogglesState(true);
mBlueToggleButton.setToggleState(true, juce::NotificationType::dontSendNotification);
mBlueToggleButton.setRadioGroupId(radioGroupId, juce::NotificationType::dontSendNotification);
addAndMakeVisible(mBlueToggleButton);
mGreenToggleButton.addListener(this);
mGreenToggleButton.setToggleable(true);
mGreenToggleButton.setClickingTogglesState(true);
mGreenToggleButton.setToggleState(false, juce::NotificationType::dontSendNotification);
mGreenToggleButton.setRadioGroupId(radioGroupId, juce::NotificationType::dontSendNotification);
addAndMakeVisible(mGreenToggleButton);
//-------------------------------------------
juce::TextButton mBlueToggleButton;
juce::TextButton mGreenToggleButton;
juce::AudioProcessorValueTreeState::ButtonAttachment mBlueToggleButton_buttonAttachment;
juce::AudioProcessorValueTreeState::ButtonAttachment mGreenToggleButton_buttonAttachment;
//--------------------------------------------
//Constructor
mGreenToggleButton("Green Toggle Button"),
mGreenToggleButton_buttonAttachment(audioProcessor.apvts, "greenToggleButtonParameterID", mGreenToggleButton),
//Blue the same
In non-GUI situations, buttonClicked() in the Editor is not called seemingly. Is anything triggered in the Editor in the non-GUI scenario that I can pick up on?


