Connect


Connect

Connects an output from one instrument to an input or knob of another instrument

Synopsis

Connect <source instrument> <source output> <dest instrument> <dest input>

Description

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.

Arguments

<source instrument>
Symbol name of the source instrument.
<source output>
Name of an output from the source instrument.
<dest instrument>
Symbol name of the destination instrument.
<dest output>
Name of an input or knob in the destination
instrument to receive signal from <source
output>.

Examples

The following example shows a patch file that uses 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 

See Also

LoadInstrument, Tweak