I want to make a program that would record audio data using PortAudio (I have this part done) and then display the frequency information of that recorded audio (for now, I\'
To convert your audio samples to a power spectrum:
magnitude = sqrt(re^2 + im^2)
)magnitude_dB = 20*log10(magnitude)
)