SuperCollider CLASSES

Mix

Sum an array of channels.
Inherits from: Object

Description

Mix will mix an array of channels down to a single channel or an array of arrays of channels down to a single array of channels. More information can be found under Multichannel Expansion.

NOTE: Note that Mix.ar and Mix.kr in SC2 are equivalent to Mix.new in SC3, and that Mix.arFill and Mix.krFill are equivalent to Mix.fill.

Class Methods

*new (array)

Arguments:

array

The array of channels or arrays.

*fill (n, function)

Arguments:

n

The size of array to create.

function

The array filling function.

Returns:

Returns: A newly created UGen .

Inherited class methods

Undocumented class methods

*ar (array)

*arFill (n, function)

*kr (array)

*krFill (n, function)

Instance Methods

Inherited instance methods

Examples

s.boot;

{ Mix.new([ PinkNoise.ar(0.1), FSinOsc.ar(801, 0.1), LFSaw.ar(40, 0.1)]) }.play

(
play({
    Mix.new( Array.fill(8, { SinOsc.ar(500 + 500.0.rand, 0, 0.05) }) );
}))

(
play({
    Mix.fill(8, { SinOsc.ar(500 + 500.0.rand, 0, 0.05) });
}))