librosa.fourier_tempo_frequencies

librosa.fourier_tempo_frequencies(*, sr=22050, win_length=384, hop_length=512)[source]

Compute the frequencies (in beats per minute) corresponding to a Fourier tempogram matrix.

Parameters:
srnumber > 0

The audio sampling rate

win_lengthint > 0

The number of frames per analysis window

hop_lengthint > 0

The number of samples between each bin

Returns:
bin_frequenciesndarray [shape=(win_length // 2 + 1 ,)]

vector of bin frequencies measured in BPM.

Examples

Get the tempo frequencies corresponding to a 384-bin (8-second) tempogram

>>> librosa.fourier_tempo_frequencies(win_length=384, sr=22050)
array([ 0.   ,  0.117,  0.234, ..., 22.266, 22.383, 22.5  ])