v0.1Latest

Toggle

Latch a boolean state from trigger, set, and reset inputs.

Toggle holds a 0/1 state. A rising edge at Trigger flips it, Set forces it high, and Reset forces it low. Inputs treat zero as low and any nonzero value as high; a held input acts once until it returns low. If inputs rise on the same sample, Reset takes priority over Set, then Trigger. Gate and Value report the same state for event and control destinations. The latch and edge history survive live graph edits and transport start, stop, or seek. Explicit reset or patch initialization clears the state and edge history.

Inputs

Trigger

Toggle state on a rising edge or phase-clock wrap.

IDtrigger
Signaltrigger · event rate
CoercionImplicit

Set

Force the state high on a rising edge.

IDset
Signaltrigger · event rate
CoercionImplicit

Reset

Force the state low on a rising edge.

IDreset
Signaltrigger · event rate
CoercionImplicit

Outputs

Gate

Latched state as a gate.

IDgate
Signalgate · event rate
CoercionImplicit

Value

Latched state as a 0/1 control signal.

IDvalue
Signalcontrol · control rate
CoercionImplicit

Details

Canonical IDlogic.toggle
Categoryutilities
Runtime Surfacecontrol
Runtime Targetscontrol-main-thread
JUCE Early AccessSupported
Early Access NoteNative-supported in the plugin for the current catalog/runtime support contract.