Detecting beats in a song
Solution 1
You can use this BPM Detection Library
Besides BPM calculation it also allows you to get every beat, so you could for example adjust your visualisation, if that is the case.
Solution 2
This question has already been asked; check out this StackOverflow thread. Some of the answers include explicit beat detection algorithms and links.
- GameDev.net - Algorithm Summary
- Comb Filters
- More algorithms are on that StackOverflow thread
Comments
-
MisdartedPenguin almost 2 years
I'm working on a project which requires me to add beat detection when a song is playing in the application (WinForms - C#).
I'm currently using NAudio.NET for playing the song & displaying details about the song.
Is there a library that would allow me to do this or some way to detecting this manually? I'm not expecting a finished solution but pointers in the right direction. Ideally I would like this to be a real-time detection but it is not essential.
-
MisdartedPenguin over 12 yearsBPM and beat detection are similar but not quite the same. Those links look useful thanks.
-
GGulati over 12 yearsI'm aware that they're not the same, but some of the algorithms for BPM are the same or similar to the algorithms for beat detection.
-
MisdartedPenguin over 12 yearsThis library is great but I am unable to get hold of the developer to discuss licensing (Comes with a horrible popup in the .dll at runtime). So not helpful at the moment
-
John Lord over 5 yearsthe referenced question was closed as "too broad"