Sorry to bother again but I'm stuck on something probably quite simple but I can't figure it out.
I put a series of buttons inside a parent component in a separate .ccp/.h file. How can I let those buttons change the parameters that I have in AudioProcessor?
When I put the buttons in PluginEditor, I can do something like this:
void NewProjectProcessorEditor::buttonClicked(Button* activeButton)
{
if (activeButton == &button1)
audioProcessor->setParameterNotifyingHost(NewProjectAudioProcessor::Params::Button1, button1.getToggleState());
}
But now I'm not sure what should I do in the component I created with the buttons to control the parameters of my plugin.
Thanks in advance.