I have to perform a FFT for a .wav file in an iPhone application. I have seen FFT algorithms out there, but how would I go about parsing a WAV file and using in such an algorithm?
Should I convert the WAV file to NSData or something else?
Has anyone successfully performed a FFT of a WAV file in the iPhone before? I tried to use iPhoneFFT for this, without success.
For example, the code there states
// 2. Then fill up an array with data with your own function
fillUpInputSignalWithMyData(myFFT.inputData);
How would I provide the data from a WAV file to something like this?
I have created MyAudioFile class which contains
Thats it.I am getting the power spectrum array.I have checked with sample sine wave .Its working fine.