Skip to main content

Module tempogram

Module tempogram 

Source
Expand description

Autocorrelation-based tempogram: a tempo-salience curve over a BPM range, computed from an onset-strength envelope. One public function; caller supplies both the salience output and an autocorrelation scratch buffer (zero-heap — no internal allocation).

Functions§

bpm_for_bin
Map bin b of an n-bin salience curve to its BPM.
tempogram
Compute a tempo-salience curve of onset_env across [bpm_min, bpm_max].