From the AudioParameterTutorial I’ve learned how to write and read AudioParameters to/from plugin preset files using XML.
The methods used for this are already predefined in my AudioProcessor subclass when I create a JUCE Audio Plugin project.
According to the Plugin Tutorial part 2, the Processor should be viewed as the parent of the Editor:
“When passing information between these two it is best to consider the processor as the parent of the editor.”
Also the Editor should be responsible for getting and setting data in the Processor:
“It is the editor’s job to set and get information on this processor thread and not the other way around.”
Since the methods proposed for writing/reading preset data are located in the Processor and since the Processor holds no reference to my Editor (an AudioProcessorEditor subclass setup by the project) I find no reasonable way to notify the Editor so it can update it’s GUI with new parameter values.
So how is this supposed to work? Is the Editor notified some other way behind the scenes when presets are read and if so which method do I override to update the GUI?
Or is this supposed to be done in an enirely different manner?
Also how can the Processor be viewed as parent to Editor without holding it’s reference? Seems like I’m missing some vital aspect on how plugins are set up in the Projucer plugin template.