I have recently started studying JUCE for following writing plugins but stuck in the beginning.
According to the documentation (JUCE: Tutorial: Create a basic Audio/MIDI plugin, Part 2: Coding your plug-in) I can create and customize GUI controls in PluginEditor. The tutorial describes how to create a slider and how to manipulate a paramter via ‘sliderValueChanged’.
Also, in another tutorial (JUCE: Tutorial: Adding plug-in parameters) AudioParameterFloat class is introduced. The tutorial adds a paramter as a private member of PluginProcessor class. The additional code file (.h) does not contain any code about GUI or Slider separately. In spite of that, after compiling the file I have gotten a program that already had one slider (I have no idea how, the tutorial does not say anythin about it).
Based on the above, my question is as follows. If I create a slider in a Plugin Editor and create a private parameter in a Plugin Processor, I have no legal opportunity to change that private paramter from the slider’s listener (obviously, because the parameter is private). How do I have to get access to parameter? I suppose, a parameter could be public but then I don’t understand why the tutorial makes it private.
Thank you in advance. I would be grateful if you recommended my additional resources on JUCE plugin programming.