Hello,
I’ve started learning juce again and it is still not clear to me after making some tutorials and demos what is the best way or best practice of communicating plugin parameters with GUI objects.
For instance, If I follow the most basic tutorials and the gain plugin demo I conclude that if I have an “juce::AudioParameterFloat* gain” parameter in my AudioProcessor and a “juce::Slider gain_slider” in my editor then the way of changing the gain parameter value when the slider changes is on my editor with:
void xxAudioProcessorEditor::sliderValueChanged (juce::Slider* slider)
{
*audioProcessor.gain = static_cast<float>(gain_slider.getValue());
}.
However, is this really scalable with more parameters and GUI objects ? In other more complex demos I see they are doing it a bit different but still not exactly clear how.
Anyone that can provide some guidance ?