Open fruechtegott opened 5 years ago
https://www.analyticsvidhya.com/blog/2018/02/audio-beat-tracking-for-music-information-retrieval/ This looks nice and works very well on wav-files:
import librosa
import IPython.display as ipd
x, sr = librosa.load('/path/to/file.wav')
ipd.Audio(x, rate=sr) # playable in jupyter notebook
tempo, beat_times = librosa.beat.beat_track(x, sr=sr, start_bpm=120, units='time')
clicks = librosa.clicks(beat_times, sr=sr, length=len(x))
ipd.Audio(x + clicks, rate=sr) # play again with clicks
For real time analysis: https://github.com/librosa/librosa/issues/220 Can this be implemented?
We definitely need some kind of beat detection. http://www.flipcode.com/misc/BeatDetectionAlgorithms.pdf
Maybe https://github.com/aubio/aubio is usable?