DemandEnvGen:
Filter:
Classes | UGens > Demand | UGens > Envelopes

DemandEnvGen : UGen : AbstractFunction : Object

Demand rate envelope generator
Source: Demand.sc

Description

Plays back break point envelope contours (levels, times, shapes) given by demand ugens. The next values are called when the next node is reached.

Class Methods

DemandEnvGen.ar(level, dur, shape: 1, curve: 0, gate: 1.0, reset: 1.0, levelScale: 1.0, levelBias: 0.0, timeScale: 1.0, doneAction: 0)

DemandEnvGen.kr(level, dur, shape: 1, curve: 0, gate: 1.0, reset: 1.0, levelScale: 1.0, levelBias: 0.0, timeScale: 1.0, doneAction: 0)

Arguments:

level

A demand UGen or any other UGen returning level values. If this ends, the

doneAction is evaluated.

dur

A demand UGen or any other UGen returning time values. If this ends, the

doneAction is evaluated.

shape

A demand UGen or any other UGen: the number given is the shape number according to Env.

curve

A demand UGen or any other UGen returning curve values. if shape is 5, this is the curve factor.

The possible values are:

0flat segments
1linear segments, the default
2natural exponential growth and decay. In this case, the levels must all be nonzero and the have the same sign.
3sinusoidal S shaped segments.
4sinusoidal segments shaped like the sides of a Welch window.
a Floata curvature value for all segments.
An Array of Floatscurvature values for each segments.
gate

If gate is x ≥ 1, the UGen runs.

If gate is 0 > x > 1, the UGen is released at the next level (doneAction).

If gate is x < 0, the UGen is sampled and held.

reset

If reset crosses from non-positive to positive, the UGen is reset at the next level. If it is > 1, it is reset immediately.

levelScale

demand ugen returning level scaling values

levelBias

demand ugen returning level offset values

timeScale

demand ugen returning time scaling values

doneAction

A doneAction that is evaluated when level or duration stream ends. See Done for more detail.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.canFreeSynth

From extension in /usr/local/share/SuperCollider/SCClassLibrary/Common/Audio/canFreeSynth.sc

Examples