v0.1Latest
A/B Switch
Select control input A or B based on a non-zero select signal.
A/B Switch routes A to Output when Select is zero, and B when Select is nonzero, including negative values and values below 0.5. Selection is evaluated for every sample, so gates and Toggle values can switch control signals immediately. Unconnected A defaults to 0, B to 1, and Select to 0. Non-finite values on the selected input produce 0. The switch has no latched state; its output follows the current inputs across graph edits and transport changes.
Inputs
A
| ID | a |
|---|---|
| Signal | control · control rate |
| Default | 0 |
| Coercion | Implicit |
B
| ID | b |
|---|---|
| Signal | control · control rate |
| Default | 1 |
| Coercion | Implicit |
Select
| ID | select |
|---|---|
| Signal | control · control rate |
| Default | 0 |
| Coercion | Implicit |
Outputs
Output
| ID | y |
|---|---|
| Signal | control · control rate |
| Coercion | Implicit |
Details
| Canonical ID | logic.switch |
|---|---|
| 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. |