Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: mix-bus-to-out , Previous: mirror-watch , Up: M , Home: Overview

Clamps Dictionary

mirror-watch-trigger

Macro

(mirror-watch-trigger ref1 ref2 unwatch)

Define a bidirectional watch between bang ref-cells ref1 and ref2, so that both ref-cells will stay in sync and set the trigger function of ref2 to call trigger on ref1. Push the created unwatch functions to unwatch.

Note

After calling mirror-watch-trigger, both refs will contain the value of ref1, overwriting any previous value of ref2.

Arguments

ref1 Bang ref-cell.
ref2 Bang ref-cell.
unwatch List denoting the unwatch functions to push to.

Author: Orm Finnendahl

Created: 2025-10-25 Sa 13:53

Validate