python - Autocorrelation and Fundamental Frequency -
i trying figure out fundamental frequency of sound
i try detect fundamental frequency autocorrelation.
i found code:
corr = np.correlate(signal, signal, mode='full') maxcorr = np.argmax(corr) corr = corr / corr[maxcorr] corr = corr[corr.size / 2:]
index of maximum value 3145. , sample rate 44100.
so... got fundamental frequency 44100/3145 = 14.02.
this way wrong since sound piano c4 should around 261hz.
how can fundamental frequency autocorrelation?
added:
Comments
Post a Comment