FreeSelfWhenDone:
Filter:
Classes | UGens > Synth control

FreeSelfWhenDone : UGen : AbstractFunction : Object

Free the enclosing synth when a UGen is finished
Source: EnvGen.sc

Description

Some UGens set a 'done' flag when they are finished playing. FreeSelfWhenDone will free the enclosing synth when this flag is set to true.

See Done for a complete list of these UGens.

Note that many of these UGens have doneActions, which are another way of accomplishing the same thing. See Done for more detail.

NOTE: One must be careful when using binary operations on UGens with done flags, as these will return a BinaryOpUGen, and thus prevent the done flag from being accessible. See example below.

Class Methods

FreeSelfWhenDone.kr(src)

Arguments:

src

the UGen to check for done.

Inherited class methods

Instance Methods

Inherited instance methods

Examples