Hello All,
I was curious setting a parameter’s “automatable” member to true/false based on certain conditions for a plugin I am working on. Specifically this plugin is allowed to run in mono and stereo modes, and if for example I’m running two instances where one is left-mono, I would like to disable this left-channel plugin from automating the right-channel plugins’s parameters. However since the plugin registers with all of the left and right parameters available on construction (since you’d need them all in stereo mode) the opposite channel’s parameters are still available in the DAW automation for a left or right mono instance of the plugin.
I considered doing something to add/remove the relevant parameters from the list when the Stereo/Mono mode is changed, but this feels risky as then the plugin will be registering and unregistering parameters with the DAW during operation, potentially even during audio playback. The AudioParameter(Int/Float/Bool/etc) classes don’t come with a setter for this property, presumably for a reason.
Does anyone have suggestions here? Part of my confusion is how the “registering” of parameters with the DAW actually happens, although I expect this varies between plugin formats and DAWs.
Thank you!!
