I’m trying to prototype a game like AudioSurf / Piano Tiles. Now, I’m building a Onset Detection system, but I don’t have any signal analysis knowledge. I’ve researched some resources but I can’t figure this issue out. I have PCM data that I got from AudioClip.GetData. I found some implementations for Fast Fourier Transform but they are all works with complex numbers. How can I perform FFT on my PCM data?
I’ve just posted an answer on this question over here. The FFT lives inside the complex plane as each frequency has an amplitude as well as a phase which is represented by the complex number. The magnitude / length of the number is the amplitude and the angle of the complex number is the phase. For most frequency analysis you don’t care about the phase.