开发者

Pitch Detection using AutoCorrelation

开发者 https://www.devze.com 2023-01-29 07:34 出处:网络
I am using auto correlation function to detect pitch of the signal. I am using the equa开发者_如何学编程tion

I am using auto correlation function to detect pitch of the signal. I am using the equa开发者_如何学编程tion acf(s)=(1/n)*sigma(|x(n)-x(n+s)|)

How do i proceed from here. Should i find the minimum and the pitch is the index of the minimum. In this case the pitch is always 0. Am I doing it correctly? I need help. Thanks.


The first minimum in the autocorrelation function identifies the fundamental period (so logn as the original data is not too noisy). This will be a number of samples, N, so you need to convert this to frequency, e.g.

pitch = Fs / N

where Fs is the sampling frequency.

0

精彩评论

暂无评论...
验证码 换一张
取 消