Splay:
Filter:
Classes | UGens > Multichannel > Panners

Splay : UGen : AbstractFunction : Object

Splay spreads an array of channels across the stereo field
Source: Splay.sc

Description

Splay spreads an array of channels across the stereo field. Optional arguments are spread and center, and equal power levelCompensation. The formula for the stereo position is ((0 .. (n - 1)) * (2 / (n - 1)) - 1) * spread + center

Class Methods

Splay.ar(inArray, spread: 1, level: 1, center: 0.0, levelComp: true)

Splay.kr(inArray, spread: 1, level: 1, center: 0.0, levelComp: true)

Arguments:

inArray

The array of channels to be distributed over the two stereo pairs

spread

For spread = 0, all channels end up in the centre, for 1, they have maximum distribution

level

An amplitude multiplier for all channels

center

Shift the centre of the distribution.

levelComp

Splay.arFill(n, function, spread: 1, level: 1, center: 0.0, levelComp: true)

In analogy to Mix:arFill, this method takes a function that produces the channels. The counting index is passed to it.

Arguments:

n

Number of channels

function

Function to return each channel

spread

For spread = 0, all channels end up in the centre, for 1, they have maximum distribution

level

An amplitude multiplier for all channels

center

Shift the centre of the distribution.

levelComp

Inherited class methods

Instance Methods

Inherited instance methods

Examples