ToggleFF

object ToggleFF extends ProductReader[ToggleFF]

A UGen that toggles like a flip-flop between zero and one upon receiving a trigger. The flip-flop initially outputs zero and changes to one when the first trigger arrives.

===Examples===

// mouse-button toggle
play {
 // make sure lag is zero, otherwise the output
 // never falls back exactly to zero!
 val tr = MouseButton.kr(lag = 0)
 val ff = ToggleFF.kr(tr)
 SinOsc.ar(ff.mulAdd(400, 800)) * 0.1
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[ToggleFF]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def ar(trig: GE): ToggleFF
Value Params
trig

a signal to trigger the flip-flop. a trigger occurs when the signal changes from non-positive to positive.

def kr(trig: GE): ToggleFF
Value Params
trig

a signal to trigger the flip-flop. a trigger occurs when the signal changes from non-positive to positive.

def read(in: RefMapIn, key: String, arity: Int): ToggleFF