Beat phase
Tracking the beat
Follow a pulse through missing kicks, syncopation, and changing tempo.
A beat tracker has to answer “when?” as well as “how often?” It can place a beat where the audio has no attack, provided neighboring events establish a pulse. That ability matters when a kick drops out under a vocal or a drummer anticipates the next bar. 6 · 9
A grid with a phase tracker
For a steady track, test possible offsets across one candidate beat period. Sum onset strength near each predicted grid point and retain the best-supported alignment. During playback, a phase-locked-loop-style tracker can predict the next beat and use nearby evidence to adjust its phase and period. Small bounded corrections keep motion smooth. A large correction should require several consistent observations or a manual re-anchor. Otherwise an isolated fill can move the entire show.
BeatRoot keeps competing hypotheses. After clustering inter-onset intervals, agents with different periods and starting times attempt to match new events. An agent can survive a missing onset and a rival can win after the first lock proves false. This trades extra state and tuning for a way out of an early phase error. 5
Dynamic programming across a file
Ellis scores a beat path using onset strength at its chosen timestamps and a penalty for intervals that depart from a target period. One implementation uses a squared log-ratio penalty, so doubling and halving an interval incur symmetric penalties. Dynamic programming stores the best predecessor at each candidate time and backtracks through the recording. This lets evidence later in the file change an earlier decision. librosa exposes the approach and accepts a supplied BPM estimate, including time-varying values in its documented interface. 6 · 7
A short trailing block can also be decoded, but committing its last beat is a different algorithmic contract. The answer may move when a later block arrives. A live renderer should distinguish provisional history, committed events, and future predictions. A correct timestamp computed after the frame deadline cannot trigger that frame.
Causal pulse and prediction
BTrack is a classical C++ implementation for beat-synchronous processing. It combines local onset evidence with a tempo model and beat prediction. The 2024 real-time predominant local pulse (PLP) system instead uses local periodic components to construct a continuous pulse. The implementation exposes stability and future pulse peaks, useful for scheduling a motion apex. aubio provides another low-overhead streaming baseline with beat, period, and confidence outputs. 8 · 9 · 10
An extrapolated beat can drive motion on time, then be contradicted by a sudden stop. Track the last credible observation and decay confidence during gaps. A brief dropout can coast for a musical interval, while a long breakdown can retain smooth motion and suppress sharp kick accents. A seek, loop jump, or newly selected deck should invalidate queued events from the former timeline. These are visual control decisions to test against the performance material.
A measured phase failure
Vande Veire and De Bie evaluated a specialized steady-tempo drum-and-bass tracker on a second set of 220 tracks in the 160–190 BPM range. It aligned correctly on 216. In all four failures it found the right tempo and placed the entire beat grid half a beat away. A BPM-only score would have concealed all four failures. 12