I’m trying to create a FX chain VST closely following the tutorial here https://docs.juce.com/master/tutorial_audio_processor_graph.html
Here is what I want to do: have a UI which appears for each of the potential processors that can be placed in each slot (in my case, a reverb, delay and filter) such that when a user selects, say, Reverb in slot 1, the UI for the reverb appears in the UI of the AudioProcessorGraph FX chain (which in my case, is the main plugin processor as in the tutorial) at the given slot (assume three horizontal combo boxes at the top of the UI with space underneath for said processor to “appear”). I have separate classes for each processor like the tutorial as well. I currently have a single plugin editor h and cpp file for the graph, and none for the individual classes.
My question is how to do this. If curious my codebase is virtually identical to the tutorial except for the processing code for each processor. I have gotten stuck trying to declare sliders and attachments, and the processors themselves in the editor.h file of the FX chain for the reverb, delay and filter, which demands that an instance of reverb, delay and filter are explicitly declared in the constructor of the Plugin Editor - when changing this my IDE demands that I change the createEditor() function to reflect the constructor, however this is clearly the wrong approach.
Any help is much appreciated. In short I just want to be able to add the relevant dials and knobs to the UI based on the selection of the processor slots by the user.
Should probably also mention I’m quite new to c++ and very new to Audio Programming and graphics.