modular-led-controller-workstation icon indicating copy to clipboard operation
modular-led-controller-workstation copied to clipboard

Beat Detection

Open fruechtegott opened this issue 6 years ago • 1 comments

We definitely need some kind of beat detection. http://www.flipcode.com/misc/BeatDetectionAlgorithms.pdf

Maybe https://github.com/aubio/aubio is usable?

fruechtegott avatar Feb 01 '19 21:02 fruechtegott

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?

fruechtegott avatar May 15 '20 19:05 fruechtegott