Control:
Filter:
Classes | UGens > Synth control

Control : MultiOutUGen : UGen : AbstractFunction : Object

Bring signals and floats into the ugenGraph function of a SynthDef.
Source: InOut.sc
Subclasses: LagControl, TrigControl

Description

A Control is a UGen that can be set and routed externally to interact with a running Synth. Typically, Controls are created from the arguments of a SynthDef function.

Generally you do not create Controls yourself. (See Arrays example below).

The rate may be either .kr (continuous control rate signal) or .ir (a static value, set at the time the synth starts up, and subsequently unchangeable). For .ar, see AudioControl

SynthDef creates these when compiling the ugenGraph function. They are created for you, you use them, and you don't really need to worry about them if you don't want to.

For a more concise combination of name, default value and lag, see NamedControl

Class Methods

Control.kr(values)

Control.ir(values)

Arguments:

values

default values.

Control.names(names)

Arguments:

names

adds control names to the SynthDef.

Inherited class methods

Undocumented class methods

Control.isControlUGen

Instance Methods

Inherited instance methods

Undocumented instance methods

.values

Examples

What is passed into the ugenGraph function is an OutputProxy, and its source is a Control.

The main explicit use of Control is to allow Arrays to be sent to running Synths:

Symbols

Inside SynthDefs and UGen functions, symbols can be used to conveniently specify control inputs of different rates and with lags (see: NamedControl, and Symbol)

\name.kr(val, lag)
Return a control rate NamedControl input with a default value (val), and if supplied, with a lag. If val is an array, the control will be multichannel.
\name.ar(val, lag)
Return an audio rate NamedControl input with a default value (val), and if supplied, with a lag. If val is an array, the control will be multichannel.
\name.ir(val)
Return an initialization rate NamedControl input with a default value (val). If val is an array, the control will be multichannel.
\name.tr(val)
Return a TrigControl input with a default value (val). If val is an array, the control will be multichannel.