TDuty:
Filter:
Classes | UGens > Demand

TDuty : Duty : UGen : AbstractFunction : Object

Demand results as trigger from demand rate UGens.
Source: Demand.sc

Description

A value is demanded each UGen in the list and output as a trigger 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

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

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

Arguments:

dur

Time values. Can be a demand UGen or any signal. The next trigger value 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.

gapFirst

when 0 (default), the UGen does the first level poll immediately and then waits for the first durational value. When this is 1, the UGen initially polls the first durational value, waits for that duration, and then polls the first level (along with polling the next durational value).

Inherited class methods

Instance Methods

Inherited instance methods

Examples