Hi everyone,
I’ve been trying something about BPM detection program. I read http://archive.gamedev.net/archive/reference/programming/features/beatdetection/index.htmlalready. It says that if i want to detect a beat i need to compute the instant sound energy and also the average sound energy. I am fine with computing the instant sound energy. But have no idea how to compute the average sound energy. Should I keep reading both channels buffer for 44032 samples(about real one second)? Or should I put the reading part into a loop reading 1024 samples for 13 times?? And if I wanna detect the whole song, how can I do it? Just put it in my Updata()? Have anyone ever done with this? Please give me a hand with this. Will appreciate it. Thanks.
1 Like
Why not just use an existing C# library? like this one. Besides BPM calculation it also allows you to get every beat.
1 Like
Thanks for sharing. In fact, I already go through that code you shared. According to the documentation, I still don’t know how to get it work. Have you tried it before? Or can you provide me with some tutorial please. Thanks!!
1 Like
No, i haven’t tried it before. It goes to deep for me :-). If i would implement something like that, i would rather use an already build .NET library that worksss with unity.
For my project i get the BPM and other music data from Deezer. Probably not what you want to achieve, but maybe you find it interesting (EchoNest API also), although i ran in some limitations which you could read here in my thread.
1 Like