4 ms·
Do you have any leads on bpm detection? I tried doing it in Python a while ago for a project and the library I used was always 5-10bpm off...
by aethos 10y ago
Do you have any leads on bpm detection? I tried doing it in Python a while ago for a project and the library I used was always 5-10bpm off...
- deleted 10y ago[deleted]
- coroxout 10y agoTotal shot in the dark but I don't suppose it was reading a 44.1kHz file at 48kHz or the other way round?
- letier 10y agoThere was a nice article on the beatport tech blog. I didn't manage to find it when I searched yesterday. Basically what they suggested was applying a low pass filter to isolate the base drums, then count the most common intervals between peaks (basically some kind of transformation) and then reconstruct the BPM from there by applying a range from 80-160 or similar. Hope this gives you a rough idea. I implemented and tested it and it worked quite well with electronic music.
- coroxout 10y agoThanks! Was it this one? http://web.archive.org/web/20160304012151/http://tech.beatport.com/2014/web-audio/beat-detection-using-web-audio/ http://web.archive.org/web/20160304012151/http://tech.beatpo... (no longer on the beatport site; tech.beatport doesn't seem to exist any more and the current beatport blog starts at 2015)
- letier 10y agoExactly, this one. :) I wanted to try it with another transformation to see if it can achieve better results.
- musicnrd 10y agoYeah that's the one, I was looking at this post that uses Spotify and echonest too https://jmperezperez.com/bpm-detection-javascript/ https://jmperezperez.com/bpm-detection-javascript/
- musicnrd 10y agoI did find this too, it's the same library used by most DJ software: https://www.sonicapi.com/docs/api/analyze-tempo https://www.sonicapi.com/docs/api/analyze-tempo Works pretty well but requires to upload a file, then process it to get the BPM. So you would need smaller audio samples as the soundcloud stream is too big and takes ages.