klob/research klob.io

Meter and bar phase

Finding beat one

Resolve which beat opens the measure and recognize when the audio leaves it ambiguous.

The first beat of a measure is the downbeat, often called “the one.” A 4/4 beat tracker can follow all the right kicks yet call beat three the start of every bar. To infer bar phase, the audio must give the tracker evidence that distinguishes at least some of those four positions. 11 · 21

Four possible answers in 4/4

Start with a sequence of beats. Group them into bars under each of four offsets. For each offset, compare beat-aligned features across several bars. Useful votes can come from a bass-note or chord change, a kick following a fill, a crash entering, a repeated snare pattern, or a change of instrumentation. Score their consistency over time. Davies and Plumbley modeled this using beat-synchronous spectral differences and bass-frequency evidence with a known meter. 11

The strongest hit in a bar often belongs to a snare on two or four. A backbeat alone can leave a two-beat ambiguity. An identical four-on-the-floor kick on all four beats has no information identifying beat one. Waiting for a bass or harmonic change, importing a deck marker, or taking a manual “one” can resolve the offset. A count from the first detected beat is only as good as that initial anchor. 11 · 33

Joint meter and phase inference

A probabilistic tracker can represent tempo, within-bar position, and meter together. The observation model scores evidence for an ordinary beat and a downbeat. The transition model enforces plausible movement through a bar and plausible tempo change. A dynamic Bayesian network (DBN) can select a full-file path with Viterbi decoding. A forward filter or particle filter maintains several possible current states without needing the rest of the song. The decoder, features, and peak picker must all respect the live latency budget. 21 · 23

A 4/4 prior is a sensible default for a dance set. Keep a meter setting or additional hypotheses for 3/4, edits that insert a beat, and material whose compound grouping changes which pulse the listener taps. A missing beat in a rigid counter can rotate the labels on every subsequent bar. Report meter and confidence alongside the most likely bar position. Let the operator reset beat one without changing a tempo that is already correct. 11 · 23 · 33

What a transport knows

Ableton Link can share tempo and phase modulo a chosen quantum. Four beats is a useful quantum for four-beat bars. A transport and a correctly analyzed track can supply an excellent clock. The link itself cannot hear which beat the performer intended as the musical downbeat. Native Instruments documents a Reset Downbeat mapping for Traktor when alignment slips after playback resumes. Keep the manual bar anchor independent from the phrase anchor. 32 · 33

Chapter sources (5)