Skip to main content
Lightning Jar - Web Studio Lightning Jar Wordmark

Study 27 · Listening

Whole-grid re-phasing at fast tempos: recipe v5 snaps every song onto the onset lattice, and the anchor adjudication moves mop-heart's truth by 0.381 seconds

Listening · whole-grid re-phasing

Study Overview

The Problem and the Suspicion

Study 26c left one number standing that no end repair could touch: mop-heart's 0.32 second outro residual, inherited from its own aligned middle, whose whole-grid phase sits off the beat at a tempo (224 bpm, 3/4) where a bar lasts 0.8 seconds and 115 milliseconds is 43 percent of a beat. Study 25 had measured the suspicion without naming it: the oracle anchor and the onset comb's phase disagreed by those 115 milliseconds, and Study 24's comb-phase arm drafted 136 of 140 on this song where the oracle-anchored arm drafted 103. The notes live on the onset lattice. The question was whether the truth did too, because the program's 'true' mop anchor was itself the Study 25 oracle construction, inherited by Study 26 as the ruler.

Arm A: the Anchor Was the Ruler, Again

Registered before the remedy was scored: three candidate anchors, each defining a uniform 140-bar grid, decided by the shipped reader's hint roots against the chart. The oracle scored 113 of 140. The v5 anchor measured from the full mix and the v5 anchor measured from the drums stem alone, two envelopes that share no computation, agree exactly at minus 0.066 seconds and score 115. The margin is two roots, disclosed as thin: the hint instrument pools chroma per bar and this song holds long same-chord spans, so it tolerates phase. The persuasive evidence is physical, the two combs' exact agreement, with Study 24's 33-bar drafting split as committed corroboration. The refined anchor sits 0.381 seconds, 47 percent of a bar, before the incumbent. The registered consequence lands on Study 26c's mop row: its 0.42 second middle offset and 0.32 second outro residual were mostly this ruler error, not the map, while its app-acceptance verdict stands. Third ruler correction of the arc, and the second one caught by instruments the arc itself built.

Recipe v5: One More Move

v5 is v3 with a single addition. After the comb period and the median-phase trust line, slide the entire uniform grid, every bar with one delta, onto the onset lattice with the committed comb-slide instrument, fenced at half a beat (the period divided by the meter's beats). The fence is the 26c lesson transposed down a level: half a beat cannot reach the neighboring beat, so the slide corrects sub-beat phase and can never hop the lattice, and a unit test proves it against a lattice of louder off-beat impulses. Measured: mop-heart lands at 0.000 seconds everywhere against the refined truth, a number disclosed as partly circular since the refined truth is the lattice v5 itself names on this song; the non-circular content is the two combs' agreement, the hint win and the app's shipped acceptance passing. Letter-lands and peaceful-dreams moved about 40 milliseconds onto the lattice with ends at 0.05 to 0.07 seconds and middles near 0.06, inside the no-regression gate. The corrected-chart eat passes within the quarter-bar line, and the interior-trust refusal fires unchanged against the superseded 86-bar fixture: re-phasing does not blunt the wrong-chart detector.

What Ships

v5 supersedes v3 as the recommended browser-worker recipe, at the cost of one additional comb slide over an envelope the worker already computes. The fast-tempo phase problem named in the alignment-ends answer is closed: bar lines at fast tempos come from the onset lattice, not from the alignment's phase. The reference implementation is committed in the bench (src/study27/rephase.ts) with the fence test, and the guidance to the app gains one line: when the player and the alignment disagree about where the beat is, trust the drums.

Table 27.1: Arm A's anchor adjudication and recipe v5's per-song results against the refined truth

Ask Eljay

Ask about the studio's work, research, packages, or writing. A few starters:

Answers come from this site's own content and link their sources. For anything that matters, email hello@lightningjar.com.