Skip to content

Commit ab5d8ef

Browse files
committed
cue:fade — added OSC + UID + hold/delay support, improved parser, and fixed fade keyword bug
This update extends the cue:fade handler and parser with several new capabilities and fixes multiple edge-case bugs affecting target resolution and UID parsing. • Added support for uid: argument, allowing unique identifiers for OSC messages and multi-target tracking. Defaults to the SVG element’s own id when unspecified. • Added osc: toggle (0|1). When enabled and if window.OSC_ENABLED = true, the system now transmits OSC messages in the format: /oscilla/fade/<uid> <value> Continuous fade modes (in/out/inout/pulse/strobe) send normalized 0–1 values, while blink mode sends discrete 0/1 changes only. • Added delay: parameter to defer fade start by N seconds. • Added hold: (alias time:) to automatically stop looping fade modes after N seconds. • Improved internal target resolution — 'self' now correctly maps to the element containing the cue trigger. • Fixed parser bug where the 'fade' keyword token was being greedily consumed, preventing valid parsing of identifiers containing hyphens (e.g. fade-target123). • Refined logging and auto-stop logic for looping modes (pulseSlow, pulseFast, blink, strobe). This update completes the first fully-functional cue:fade → OSC signal chain for both visual and networked fade/pulse/blink interactions.
1 parent 6e15d0a commit ab5d8ef

4 files changed

Lines changed: 1709 additions & 1403 deletions

File tree

0 commit comments

Comments
 (0)