Overview

Content

SuperCollider - FFT

Multichannel Output

Fixed Outputs

When your Function returns an Array of UGens, each slot of the array correspons to an outputchannel (starting from 0 = physical outputchannel 1).

// stereo example
{ [SinOsc.ar(440, 0, 0.2), SinOsc.ar(442, 0, 0.2)] }.play;
 
// quad example
{ [SinOsc.ar(440, 0, 0.2), SinOsc.ar(442, 0, 0.2), SinOsc.ar(438, 0, 0.2), SinOsc.ar(435, 0, 0.2)] }.play;

When you need a specific outputchannel you can use the Out.ar UGen, which expects the outputchannel as frist argument.

{
    Out.ar(3, SinOsc.ar(440, 0, 0.2));  // Channel 3 (4. physical output)
    Out.ar(7, SinOsc.ar(442, 0, 0.2));  // Channel 7 (8. physical output)
}.play;

Out.ar expects as frist argument the outputchannel number and as second argument a UGen or an array of UGens. If you provide an array, multichannel expansion is happening. That means, that the first argument defines the outputchannel for the first object of the argument and the following UGens of the array are played on following consecutive channels.