Duty:
Filter:
Classes | UGens > Demand

Duty : UGen : AbstractFunction : Object

Demand results from demand rate UGens.
Source: Demand.sc
Subclasses: TDuty

Description

A value is demanded of each UGen in the list and output according to a stream of duration values. The unit generators in the list should be 'demand' rate.

When there is a trigger at the reset input, the demand rate UGens in the list and the duration are reset. The reset input may also be a demand UGen, providing a stream of reset times.

Class Methods

Duty.ar(dur: 1.0, reset: 0.0, level: 1.0, doneAction: 0)

Duty.kr(dur: 1.0, reset: 0.0, level: 1.0, doneAction: 0)

Arguments:

dur

Time values. Can be a demand UGen or any signal. The next level is acquired after duration.

reset

Trigger or reset time values. Resets the list of UGens and the duration UGen when triggered. The reset input may also be a demand UGen, providing a stream of reset times.

level

Demand UGen providing the output values.

doneAction

A doneAction that is evaluated when the 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

Resetting the demand ugens:

Demand ugen as audio oscillator:

single sample feedback: a lin cong algorithm: