Tempo estimation

given a sound file, estimate its tempo

Load a sound

Listen to it

Librosa's beat.tempo function

Custom Tempo Estimation

The following are steps needed to obtain a tempo estimation from an audio signal.

1. Compute the Power Spectrum of a signal

2. Compute the Mel Spectrogram using the Power Spectrum

3. Compute the onset strength envelope using the Mel Spectrogram

4. Estimate the tempo using Autocorrelation or Frequency Estimation

4.1 Autocorrelation

4.1 Frequency Estimation (DFT Method)

Exercise 1

Define a function to estimate the tempo from an audio file using the three methods above

Exercise 2

Get the tempo estimates of 10 files of your choosing and compare them.