← back to chapter

warp-math · real audio

The production path. Parse a beat_this .beats file, build a tempo model with 01-the-math, play it back, and watch the playhead's musical position (β) follow the audio clock through the warp map. The pickup-beat offset that the teaching layer skips lives in grid.js, kept clearly separate from the time shift that anchors the model at {0,0}.

1. beats file (required)

Or click (14 beats at a steady 120 BPM, with a 2-beat pickup before bar 1).

no beats loaded

2. audio file (optional)

Drop your audio that goes with the beats file. Without it we play a synthetic click track at every beat -- enough to verify the grid lines up.

no audio loaded · synth-click mode

audio clock: s · β = · bpm here =
debug: round-trip table (audio time → β → audio time)

For each beat in the file: the time we PARSED, the beat we INFER via secondsToBeats, the time we re-derive via beatsToSeconds, and the residual. Should be zero to numerical noise for a piecewise-constant model.

iparsed tβ = s→b(t)t' = b→s(β)residual