patchsig
Route audio between instruments.
Syntax
Usage
graph LR
A[Source] --> B[Destination]
patchsig routes audio output from one instrument to the input of another. The destination must have inputs such as an 'Effect' instrument or the global output.
patchsig works in conjunction with the send UDO, used within instruments. send sends audio to a global audio array. patchsig gets the audio and delivers it to inputs of the destination instrument.
Channel assignments (e.g. 'left' output, or 'right' input) are automated. patchsig alternates the distribution of audio output channels to all input channels, thus a mono instrument output will have it's output copied to each input of a stereo Effect. A stereo source to a 4-channel Effect will have the left channel patched to inputs 1 & 3, and the right channel to channels 2 and 4.
Re-patching to different instruments live in performance is also possible: patchsig takes care of any required 'disconnections'.
There is no restriction on the order of instruments connected by patchsig, however a k-period delay between instruments may be introduced if a higher numbered instrument is patched to a lower numbered one.
Arguments
Ssource -- String name of the instrument sending audio
SDestination -- String name of the instrument receiving audio. These should be 'Effect' instruments with audio inputs. (See EffectConstruct)
- "outs" is available as a destination, and sends audio to the output.
ilevel (optional, default=1) -- An amplitude multiplier applied to the Destination output.
Slevel (optional, alternative to ilevel) -- When using a string Slevel will read a channel name to retrieve the multiplier.