object ListTrig2 extends ProductReader[ListTrig2] with Serializable
A UGen that produces a scheduled sequences of trigger impulses. Trigger times
are provided as a list (buffer) of relative durations between consecutive
events. A trigger is output as a single control period of value 1
, after
which output returns to zero.
Examples
// trigger grains val b = Buffer(s) b.alloc(11) b.setData(Vector(1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89).map(_ * 0.1f)) // Fibonacci val x = play { val reset = "reset".tr val tr = ListTrig2.kr(b.id, BufFrames.kr(b.id), reset) Timer.kr(tr).poll(tr, "timer") val env = EnvGen.ar(Env.perc(0.01, 0.1), gate = tr) SinOsc.ar(Seq(440, 460)) * env * 0.2 } x.set("reset" -> 1) // start anew x.free(); b.free()
This is a third-party UGen (MCLDUGens).
- Note
The argument order is different from its sclang counterpart.
- See also
- Alphabetic
- By Inheritance
- ListTrig2
- Serializable
- ProductReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kr(buf: GE, size: GE, reset: GE = 0): ListTrig2
- buf
identifier of the buffer containing the durations for the triggers in seconds. A value represents a relative offsets with respect to its predecessor. The first value indicates the time between the start of the synth or last
reset
received and the first trigger. The buffer should be monophonic.- size
the number of values to use from the buffer. Typically, this should be
BufFrames.kr(buf)
.- reset
resets the timer and begins reading the time deltas again at the start of the buffer.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def read(in: RefMapIn, key: String, arity: Int): ListTrig2
- Definition Classes
- ListTrig2 → ProductReader
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated