First post, thanks to the large community!
I am using AudioKit and trying to add frequency weighting filters to the microphone input, so I'm trying to figure out the values that come out of AudioKit AKFFTTap.
I'm currently trying to just print the FFT buffer converted to dB values
for i in 0..<self.bufferSize { let db = 20 * log10((self.fft?.fftData[Int(i)])!) print(db) }
I expected the values to be in the range of -128 to 0, but I get strange values of almost -200 dB, and when I blow on the microphone to set the reading, it reaches about -60. Am I right about this? I assumed that the values output from the EZAudioFFT mechanism would be equal to the amplitude and that normal dB math conversion would work. Does anyone have any ideas?
Thanks in advance for discussing this issue!
source share