v0.1Latest
Compare
Compare
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 - Kind:
control - Rate:
control - Coercion: Implicit
- Default:
0
B
- ID:
b - Kind:
control - Rate:
control - Coercion: Implicit
- Default:
0
Outputs
Gate
- ID:
gate - Kind:
gate - Rate:
event - Coercion: Implicit
- Description: Comparison result as a 0/1 gate.
Changed
- ID:
changed - Kind:
trigger - Rate:
event - Coercion: Implicit
- Description: One-sample trigger when the comparison result flips.
Parameters
Mode
- ID:
mode - Type:
enum - Control:
select - Range or Options: > (
gt), >= (gte), < (lt), <= (lte), = (eq), ≠ (neq) - Default: > (
gt)
Notes
- 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.