I’m trying to make a sound generating plug-in that also can function as a MIDI-controlled audio effect plugin. The aim is to have a toggle where the user can select between either having sample playback or a stereo sidechain input as their sound source (which is then sent through the rest of the plugin’s processing).
I’m having trouble figuring out how to properly override setPreferredBusArrangement to not allow the plugin to be instantiated with any ‘main bus’ channels, but to allow for left/right sidechain channels to be received. Is this actually possible?
Alternatively, is there a way to create an audio plugin that is MIDI keyboard controllable but still has a stereo input bus?