If you have a function definition:
{ SinOsc.ar(440, 0, 0.2) }.play;
The equivalent is:
SynthDef.new("SinOsc", { Out.ar(0, SinOsc.ar(440, 0, 0.2)) }).play;
for stereo, you simply say:
SynthDef.new("SinOsc", { Out.ar([0,1], SinOsc.ar(440, 0, 0.2)) }).play;
What if you want to do this:
{ [ Mix( [ SinOsc.ar(440, 0, 0.2) ] ), Mix( [ Saw.ar(662,0.2) ] ) ] }.play;
What would be the SynthDef equivalent? Besides, is there a more elegant way to define the function above?