SuperCollider CLASSES

NumChannels

Ensures the number of output channels
Inherits from: Object

Description

Ensures the output has the stated number of channels, regardless of the number of input channels.

Class Methods

*ar (input, numChannels: 2, mixdown: true)

Arguments:

input

the audio signal

numChannels

an integer

mixdown

true/false, whether you want to mixdown or just use the first channel

Discussion:

Mono input is copied. Multi-channels clumped and if mixdown is true mixed down, else the first channel used.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

(
{
    NumChannels.ar(
        SinOsc.ar(100,0,0.2), // 1 becomes 2
        2)
}.play
)

(
{
    NumChannels.ar(
        SinOsc.ar([100,200,300],0,0.2), // 3 becomes 2
        2)
}.play
)

(
{
    NumChannels.ar(
        SinOsc.ar([100,200,300,100],0,0.2), // 4 becomes 2

        2)
}.play
)