Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Beat Detection Algorithm

Discussion in 'Audio & Video' started by SrXoo, Nov 8, 2016.

  1. SrXoo

    SrXoo

    Joined:
    Nov 8, 2016
    Posts:
    4
    Hi everyone

    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/

    Algo i use other websites for reference, like:
    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.
     
    Last edited: Nov 8, 2016