-1

I'm writing a small sound recognition program in C++. So I have an mp3 file which I sampled using mpg123 and got a 32-bit float array. Now I passed this array to FFT function and got some data. How do I extract frequencies?

  • 3
    Welcome to Stack Overflow @chingachgook, I hope that you will take the time to review [How To Ask](https://stackoverflow.com/help/how-to-ask) and [How to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) because this question lacks the detail required for an answer. – Stefan Crain Apr 12 '18 at 15:10

1 Answers1

1

"Some data" returned by FFT, must be a signal frequency spectrum. Probably it is an array of complex numbers, and to find "most powerful" frequency, you need to find an element with maximum absolute value (modulus). To calculate frequency, ... here was my mistake ... follow a link in Paul R's comment.

Alexey Birukov
  • 1,565
  • 15
  • 22