core/demoSequences.js — Signature Choreography (deterministic)

signatureDemo is a fixed 15-step glitch choreography with no rng: every run emits the same op log and, because the ops are pure integer arithmetic on the loop descriptor (halve / double / move-forward, reverses don't touch bounds), the final loop bounds are predictable in closed form for any buffer length N: {2q, N} where q = ⌊⌊⌊N/2⌋/2⌋/2⌋ (the last "move forward" is always a no-op — the loop already reaches the buffer end). Badge 1 asserts the op log equals the canonical sequence; badge 2 asserts the executed final bounds equal the closed-form expectation. Press Play signature to hear the choreography audition each step against a synthesized 4 s riff while the overlay tracks the moving loop.