Swift FFT - Complex split issue
问题 I am trying to perform FFT on an audio file to find frequency using the Accelerate framework. I have adapted code (probably wrong) from this question: Spectrogram from AVAudioPCMBuffer using Accelerate framework in Swift Although, the magnitudes from ' spectrum ' are either ' 0 ', ' inf ' or ' nan ', and the ' real ' and ' imag ' components of the complex split print similar results; indicating that this is the cause of the problem as: ' magnitude = sqrt(pow( real ,2)+pow( imag ,2) '. Correct