How to perform FFT on PCM data?
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?
Answer by Bunny83 · Feb 23, 2017 at 12:36 PM
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220612072240im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to mute multi-able audioclips within a single audiosource? 0 Answers
Detecting when two different audio sources are emitting sound in Unity 0 Answers
Audio doesnt play in the phone but play on the editor 0 Answers
Precisely timestamping when audio leaves speaker 0 Answers
Sound effect is not seamless 1 Answer