SelectXFocus:
Filter:
Classes | UGens > Multichannel > Select

SelectXFocus : Object

Mix one output from many sources
Source: Osc.sc

Description

The output is mixed from an array of inputs, linearly interpolating from a number of adjacent channels. A focus argument allows to control how many adjacent sources are mixed.

Class Methods

SelectXFocus.ar(which, array, focus: 1, wrap: false)

SelectXFocus.kr(which, array, focus: 1, wrap: false)

Arguments:

which

Index of the selected input, which is also the center of the selection for a focus > 0.

array

A collection of inputs.

focus

The "fuzziness" of the selection: the larger the focus, the less adjacent inputs are mixed in.

wrap

If set to true, index will wrap around the array of inputs (see also: Array: -wrapAt).

Inherited class methods

Undocumented class methods

SelectXFocus.new(which, array, focus: 1, wrap: false)

Instance Methods

Inherited instance methods

Examples

NOTE: all the ugens are continuously running. This may not be the most efficient way if each input is cpu-expensive. The array is fixed at the time of writing the SynthDef, and the whole array is embedded in the SynthDef file itself. For small arrays this is more efficient than reading from a buffer.