Hi all,
I’m building a simple plugin that will be a chain of multiple effects. I’m using the AudioProcessorGraph for this so each of my effects is itself an AudioProcessor (for which I’ll write a separate editor). As much as possible, I’d like to write things such that each separate effect I’m building for this plugin can easily be instantiated individually into a separate plugin in the future. The main question I have relates to the APVTS of each effect. I see two options:
- Each AudioProcessor owns an instance of the APVTS that is only in charge of its parameters, and the main plugin takes a reference to that after having created the component, adding sub-parameters to the APVTS of the main PluginProcessor (maybe with AudioProcessorParameterGroups?)
- Only the main PluginProcessor has an APVTS which is instantiated with all parameters of all effects, and each effect processor is created by passing the relevant subset of the ValueTree.
Is there a better, more recommended option ? To me the benefit of the first one is that each individual effect is fully autonomous and can be instantiated as a plugin which owns its parameters and make them visible to the DAW. But I don’t fully understand if it’s ok to have multiple APVTS in a plugin, or if there should only be a single one in the main plugin.
Thanks in advance.
