Trig

final case
class Trig(rate: Rate, in: GE, dur: GE) extends SingleOut

A UGen which holds and outputs an input value for a given duration when triggered.

When a trigger occurs at the input, the input value is sampled and output for the specified duration, otherwise zero is output. When a new trigger occurs while this ugens outputs 1, the hold-time is reset to the duration.

''Warning:'' The hold-time is subject to a bug that depends on the input signal. For example with Trig1.ar(Impulse.ar(0), 4 * SampleDur.ir) one actually gets a high signal for five sample frames instead of four.

Value Params
dur

the duration for which the ugens holds the value of the input signal when triggered

in

the trigger. This can be any signal. A trigger happens when the signal changes from non-positive to positive.

See also
Companion
object
trait Serializable
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