cueRepeat — Structured Playback Loops and Jumps

The cueRepeat(...) cue type enables controlled repetition of score sections using cue-based jump logic. It is designed for da capo, dal segno, and custom repeat behaviors.


Syntax

cue_repeat_s(startId)_e(endId)_x(count)_r(resumeId)_d(direction)_a(action)

Examples

Repeat a single section 3 times

cue_repeat_s(intro)_x(3)

Repeat section from A to B 2 times, then jump to C

cue_repeat_s(A)_e(B)_x(2)_r(C)

Server-Side Logic (Under Repair)

The server currently tracks active repeats and broadcasts loop state to clients. However:

BUG: Repeat coordination is currently broken in multi-client setups.

  • Only one client handles jumps correctly
  • Others may desync or re-trigger independently

TODO [HIGH PRIORITY]:


TODO: Support Nested Repeats

Nested or overlapping repeat blocks (e.g., a repeat inside a larger form) are not currently supported.

Planned: Stack-based repeat state with entry/exit markers for nested structures.


Notes


Related Cues

Tip: use ← → or ↑ ↓ to navigate the docs