TDuty

final case
class TDuty(rate: Rate, dur: GE, level: GE, reset: GE, doneAction: GE, gapFirst: GE) extends SingleOut with HasSideEffect

A UGen which polls results from demand-rate ugens in intervals specified by a duration input, and outputs them as trigger values. A value from the level ugen is demanded and output for one sample (when running at audio-rate) or one block (when running at control-rate) according to a stream of duration values. When there is a trigger at the reset input, the level and the dur input are reset.

Value Params
doneAction

a doneAction that is evaluated when the duration stream ends.

dur

the provider of time values. Can be a demand-rate ugen or any signal. The next poll is acquired after the previous duration.

gapFirst

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

level

a demand-rate ugen providing the output values.

reset

a trigger which resets the dur input (if demand-rated) and the the level input ugen. The reset input may also be a demand-rate ugen, in this case providing a stream of reset times.

See also

DoneAction

Note

The argument order is different from its sclang counterpart.

Companion
object
trait Serializable
trait HasSideEffect
class SingleOut
class SomeOut
trait Lazy
trait GE
class UGenSource[UGenInLike]
trait Expander[UGenInLike]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

final
def name: String
Inherited from
UGenSource
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Inherited fields

lazy override
val hashCode: Int
Inherited from
UGenSource