Good beat detection algorithm
I know that there is another thread about this, but my problem relates to that thread. Let me explain.
For the past few days i was trying to do a beat detection algorithm as described on this website: http://archive.gamedev.net/archive/reference/programming/features/beatdetection/
And using the answers of this thread: http://answers.unity3d.com/questions/733587/beat-detection-algorithm.html
However i'm stuck because the algorithm doesn't work quite well. In my test i change the color of a cube to red if it is a beat and blue it is not. The results are the opposite. When i hear a beat my cube it changes to blue instead of red.
I would like if anyone could help me in this matter. Here is my code: http://pastebin.com/wY1rgVJS
Also, sorry for my awful English, it isn't my first language.
Your answer
![](https://koobas.hobune.stream/wayback/20220612100311im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Audio is way too soft on mobile but alright in Unity Editor! 0 Answers
Audio Clipping Problem 0 Answers
GetSpectrumData from an audio source when Volume is 0? 0 Answers
Getting music to play 1 Answer
Audio Cutting Out Unexplainably 1 Answer