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.
| ID | trigger |
|---|---|
| Signal | trigger · event rate |
| Coercion | Implicit |
Set
Force the state high on a rising edge.
| ID | set |
|---|---|
| Signal | trigger · event rate |
| Coercion | Implicit |
Reset
Force the state low on a rising edge.
| ID | reset |
|---|---|
| Signal | trigger · event rate |
| Coercion | Implicit |
Outputs
Gate
Latched state as a gate.
| ID | gate |
|---|---|
| Signal | gate · event rate |
| Coercion | Implicit |
Value
Latched state as a 0/1 control signal.
| ID | value |
|---|---|
| Signal | control · control rate |
| Coercion | Implicit |
Details
| Canonical ID | logic.toggle |
|---|---|
| Category | utilities |
| Runtime Surface | control |
| Runtime Targets | control-main-thread |
| JUCE Early Access | Supported |
| Early Access Note | Native-supported in the plugin for the current catalog/runtime support contract. |