v0.1Latest
Compare
Compare two control signals and emit a gate plus a changed trigger.
Compares two incoming control signals and reports the result as logic outputs. It emits a gate that stays high while the comparison condition holds, plus a trigger that fires the moment the result changes state. Use it to turn continuous modulation into gates, build threshold detectors, or drive event-based routing from control values.
Inputs
A
| ID | a |
|---|---|
| Signal | control · control rate |
| Default | 0 |
| Coercion | Implicit |
B
| ID | b |
|---|---|
| Signal | control · control rate |
| Default | 0 |
| Coercion | Implicit |
Outputs
Gate
Comparison result as a 0/1 gate.
| ID | gate |
|---|---|
| Signal | gate · event rate |
| Coercion | Implicit |
Changed
One-sample trigger when the comparison result flips.
| ID | changed |
|---|---|
| Signal | trigger · event rate |
| Coercion | Implicit |
Parameters
Mode
Chooses the comparison applied to inputs A and B.
| ID | mode |
|---|---|
| Type | enum |
| Control | select |
| Range or Options | > (gt), >= (gte), < (lt), <= (lte), = (eq), ≠ (neq) |
| Default | > (gt) |
Details
| Canonical ID | logic.compare |
|---|---|
| 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. |