Connect <source instrument> <source output> <dest instrument> <dest input>
Connect
can be used to connect audio or control signals from one instrument to another. A single output can be connected to multiple inputs.When a knob has been connected to the output of another instrument, that knob can no longer be tweaked.
Connect
.
LoadInstrument osc sawtooth.dsp
LoadInstrument mixer mixer4x2.dsp
Connect osc Output mixer Input0 ; hooks oscillator output to
; mixer input.
LoadInstrument osc pulse.dsp
LoadInstrument lfo triangle.dsp
Connect lfo Output osc PulseWidth ; hooks lfo output to
; oscillator
; pulse width knob.
Tweak osc PulseWidth 400 ; error; this knob has been
; connected to another
; instrument.
Tweak osc Frequency 122 ; OK
LoadInstrument, Tweak