gh0st
gh0st

Reputation: 1714

Retrieving Data from AudioKit's FFT Plot

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?

Upvotes: 4

Views: 1379

Answers (1)

Aurelius Prochazka
Aurelius Prochazka

Reputation: 4573

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

Upvotes: 4

Related Questions