Synth(\mysyn, [out: 0])
- you only specify the first bus.
The way SC handles outputs is probably best understood by looking at the server meter (/Server/Show Server Meter - or cmd + M on a mac).
First:
s.options.numOutputBusChannels_(8);
- now you have 8 outputs. Note that SC will show you the 8 outputs we just asked for regardless of wether there are any physical outputs connected. I am on a M1 with only 2 physical outputs, but I can still see the other 6 outputs, I just can’t hear them.
In a normal DAW, stereo outputs are labeled something like 1-2, 3-4 etc. and outputting a stereo signal to say 2-3 (across 2 separate stereo busses) is not immediately possible. SC don’t really have stereo outputs, but handles multichannel outputs as consecutive monosignals and the first bus can be any bus.
Run the examples below and watch the server meter
~mysyn = Synth(\mysyn, [out: 0]) // outputs to bus 0 and 1
~mysyn.free;
~mysyn = Synth(\mysyn, [out: 1]) // outputs to bus 1 and 2
~mysyn.free;
~mysyn = Synth(\mysyn, [out: 2]) // outputs to bus 2 and 3
~mysyn.free;
Modify the synthdef to a 4 channel synth
(
SynthDef.new(\mysyn, {
var frq, sig;
frq = \frq.kr([110, 220, 330, 440]); // 4 channels
sig = Saw.ar(freq: frq, mul: 0.1);
Out.ar(\out.kr(0), sig);
}).add
)
Now:
~mysyn = Synth(\mysyn, [out: 0]) // outputs to bus 0, 1, 2, 3
~mysyn.free;
~mysyn = Synth(\mysyn, [out: 1]) // outputs to bus 1, 2, 3, 4
~mysyn.free;
~mysyn = Synth(\mysyn, [out: 2]) // outputs to bus 2, 3, 4, 5
~mysyn.free;