4

I'm working on a project that involves recording audio from the microphone of the iPhone, then feeds it through a Fast Fourier Transform (FFT).

I've found AudioKit.io has a demo in which it actively monitors microphone input and can display a plot of the FFT.

I have equations and logarithms that I plan to analyze the audio data with, so all I really need help with is retrieving the FFT data that is sent to this plot in AudioKit. I'm having a hard time finding the functions/methods that drive the data that fills this plot.

Can anyone point out where to find this FFT data in AudioKit?

mahal tertin
  • 3,239
  • 24
  • 41
gh0st
  • 1,653
  • 3
  • 27
  • 59

1 Answers1

4

The FFT code that AudioKit uses is pretty standard. You could take AudioKit's Plot and reappropriate the code as you wish:

https://github.com/AudioKit/AudioKit/blob/develop/AudioKit/Common/User%20Interface/AKNodeFFTPlot.swift

Aurelius Prochazka
  • 4,510
  • 2
  • 11
  • 34