RoutingMatrix
The RoutingMatrix
object with which you can manipulate the channels and connections of each audio modules outputs.
const var MasterChain = Synth.getRoutingMatrix("Master Chain");
MasterChain.setNumChannels(8);
Class methods
addConnection
adds a connection to the given channels. Edit on GitHub
RoutingMatrix.addConnection(int sourceIndex, int destinationIndex)
addSendConnection
adds a send connection to the given channels. Edit on GitHub
RoutingMatrix.addSendConnection(int sourceIndex, int destinationIndex)
clear
Removes all connections. Edit on GitHub
RoutingMatrix.clear()
getDestinationChannelForSource
Returns the output channel that is mapped to the given input channel (or -1). Edit on GitHub
RoutingMatrix.getDestinationChannelForSource(var sourceIndex)
getSourceChannelsForDestination
Returns one or multiple input channels that is mapped to the given output channel (or -1). Edit on GitHub
RoutingMatrix.getSourceChannelsForDestination(var destinationIndex)
getSourceGainValue
Gets the current peak value of the given channelIndex. Edit on GitHub
RoutingMatrix.getSourceGainValue(int channelIndex)
removeConnection
Removes the connection from the given channels. Edit on GitHub
RoutingMatrix.removeConnection(int sourceIndex, int destinationIndex)
removeSendConnection
removes the send connection. Edit on GitHub
RoutingMatrix.removeSendConnection(int sourceIndex, int destinationIndex)
setNumChannels
Sets the amount of channels (if the matrix is resizeable). Edit on GitHub
RoutingMatrix.setNumChannels(int numSourceChannels)