Play my value
This snippet announces the value of a control, such as a knob, slider or trim. Only the resting value is reported (repeats and intermediate values are skipped).
Here's an example using knob S1:
Logical switches
L1: |Δ|>=, S1, 1
L2: AND, !L1, ---, delay=0.5sec
Special function
SF1: L2, Play Value, S1
How it works
- L1 goes True briefly whenever the value of S1 changes.
- L2 inverts L1 ('!L1'), so L2 is false while the S1 changes, only going true 0.5 seconds later. If L1 goes true again within the 0.5 second delay, L2 does not trigger. This ensures that only the resting value is reported.
Note that the second parameter is blank (V2 = '---') - SF1 calls out the value of S1 when L2 goes true.
The graphic below shows the logic, with time on the x axis. Clicks D and E are repeats, with intervals shorter than 0.5 secs.
The method works equally well with knobs and trims.