I want to develop musical notes detector as my degree project and I want to do it from scratch. I have written code for \".wav\" file which extracts all info from that audio mus
You need to find the peak magnitude then work out the corresponding frequency:
magnitude = sqrt(re*re+im*im)
i_max
.freq = i_max * Fs / N
, here Fs
= sample rate (Hz) and N
= no of points in FFT.See this answer for a more detailed explanation of how bin indices and frequency are related.