Melody / Help / Utility / Code Gate
Code Gate
Runs an action WHEN a condition holds — the reactive cousin of Code. Write `when <condition> : <action>`: the condition watches your patch by name (`$voice.level > -30`, `$clock.bar >= 8`), and the moment it's met the action runs (`$lead.gain = 0`, `$clock.play()`). Combine conditions with `and` / `or`. Pick WHEN it fires: 'it becomes true' (once, on the crossing) or 'while it's true' (repeatedly, spaced by Cooldown). The live light shows whether the condition holds right now. An IFTTT box for your rig — it addresses other nodes by $name, and has no sound of its own.
Parameters
| Parameter | Range | Default |
|---|---|---|
| When | it becomes true, while it's true | it becomes true |
| Cooldown (s) | 0, 0.1, 0.25, 0.5, 1, 2 | 0 |
| Hysteresis | off, 2%, 5%, 10% | off |
More utility nodes
Assets · Clock · Code · Controller · Fade · Gain · Key · Key Detector · Looper · MIDI Map · MIDI Out · Mixer