To perform this task why can't I just import the file, and directly perform the fft and use the stem plot to determine the note? From the index k of the peak I can do w = 2pi*k/N where N is total number of points.
Fs, x = wavfile.read('piano.wav')
X = np.fft.fft(x)
plt.plot(abs(X))
plt.show()
However I'm not sure about the correct way to map the fourier coefficients from the plot to the frequency to determine the note.
Please advise. Thanks.