Get frequency wav audio using FFT and Complex class

前端 未结 2 1435
青春惊慌失措
青春惊慌失措 2020-12-01 11:45

It\'s been asked a lot, but I still stuck about implement FFT class on Android I need to process my audio data using FFT...

I already read the almost same question h

2条回答
  •  盖世英雄少女心
    2020-12-01 12:15

    It sounds like your immediate problem is "N is not a power of 2." In this case, N is probably referring to the size of the data you are putting into your FFT. Most FFT algorithms only work on blocks of data that have a size that is a power of 2.

    Are you trying to put the entire file into an FFT at once? If so, you may need to read more background material to understand what you are doing. Maybe start here: http://blog.bjornroche.com/2012/07/frequency-detection-using-fft-aka-pitch.html

提交回复
热议问题