post about using a processor graph to send around audiorate modulation I’m trying to implement it myself. first trying to figure how to interact with a modulation bus through the Node or AudioProcessor API.
do buses just get slapped on the end of the channel index for a node?
for example I have my bus layout set as such
for some reason (safety I guess) you can’t add a bus with the juce::AudioChannelSet::disabled() type so I burn a mono channel and set it as not enabled to indicate to the gui that it won’t have audio input.
also important to note for Anyone who stumbles upon this idea in the future are the functions getBusBuffer and getChannelIndexInProcessBlockBuffer which do what they say and get the properly offset channel so that you can change your bus layout and still know where your bus is
this brings me to my other question. is there no way to access buffers by name?
would make sense for my “host” to be querying a processor for its bus information by name rather than enforcing an arbitrary index on the modulation buffer
Individual channels don’t have names. You can call AudioProcessor::getBus() to query specific buses, and Bus::getName to find the name of each bus. For the channels in the bus, once you know the AudioChannelSet of the bus, then you can use AudioChannelSet::getTypeOfChannel (channelIndex) to find out what kind of channel is at each index.