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

IDa
Signalcontrol · control rate
Default0
CoercionImplicit

B

IDb
Signalcontrol · control rate
Default0
CoercionImplicit

Outputs

Gate

Comparison result as a 0/1 gate.

IDgate
Signalgate · event rate
CoercionImplicit

Changed

One-sample trigger when the comparison result flips.

IDchanged
Signaltrigger · event rate
CoercionImplicit

Parameters

Mode

Chooses the comparison applied to inputs A and B.

IDmode
Typeenum
Controlselect
Range or Options> (gt), >= (gte), < (lt), <= (lte), = (eq), ≠ (neq)
Default> (gt)

Details

Canonical IDlogic.compare
Categoryutilities
Runtime Surfacecontrol
Runtime Targetscontrol-main-thread
JUCE Early AccessSupported
Early Access NoteNative-supported in the plugin for the current catalog/runtime support contract.