BPM + Beat Grid Detector (Web Audio)

Novelty curve → sliding ACF (8 s) → folded tempo histogram → global phase fit → metronome
Median BPM: Folded BPM: Windows: Env fs: Phase Offset: Confidence:
Load a file to begin…
Tempo histogram (folded to 70–180 BPM)
Algorithm notes

Tips: For tougher material, consider a pre-emphasis, band-pass (100–4000 Hz), or spectral-flux from STFT magnitudes. This version keeps CPU light and works well for 4/4 electronic music.