Detecting beats in a song
Asked Answered
K

3

12

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.

Karlotte answered 29/12, 2011 at 0:58 Comment(0)
A
2

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.

Aground answered 29/12, 2011 at 1:31 Comment(1)
This 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 momentKarlotte
C
3

This question has already been asked; check out this StackOverflow thread. Some of the answers include explicit beat detection algorithms and links.

Cletuscleve answered 29/12, 2011 at 1:24 Comment(3)
BPM and beat detection are similar but not quite the same. Those links look useful thanks.Karlotte
I'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.Cletuscleve
the referenced question was closed as "too broad"Bareheaded
A
2

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.

Aground answered 29/12, 2011 at 1:31 Comment(1)
This 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 momentKarlotte
B
0

I've used FMOD to do exactly what you're doing. They don't have annoying popups. You can check out this link to a GitHub project that uses it in c#. Fmod licensing is a little odd, based on what the program's budget is. If your budget is under 500k, you can use it for free, but are supposed to display their logo somewhere, either in a splash screen or credits screen.

Bareheaded answered 24/11, 2018 at 8:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.