← Gallery Quantum sequencer — op-stream sequencing

Quantum sequencer — op-stream sequencing

scripts/quantum-sequencer.js

A generative rhythm engine: 128 chop-and-loop operations are generated, warped, and stepped live over a real drum loop — press play and watch the loop region jump around the waveform as each op fires. Under the hood, buildQuantumOpList(128, 4) seeds 128 random ops, warps them through the vector-space quantum rhythm transform, and splices in 4 preset bars. Badges assert the stream contract: exactly 128 ops, 100% closure over RHYTHM_VOCAB (the warp can only emit vocabulary words), and at least one verbatim 8-op preset bar surviving as a contiguous subsequence. Play runs buildQuantumSequence over the golden WAV, stepped by GibClock, with the live loop region overlaid on the waveform. Step execution is headless-safe post-repair (injected phaser params, local micro-stutter counter) — the same asserts spot-run in Node pre-ship.