Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • 2
    $\begingroup$ There is a reason why I like to define my autocorrelation function a little differently in the code I use for pitch detection. I don't like them ramps either. $\endgroup$ Commented yesterday
  • 2
    $\begingroup$ Oh and Dan, of course if you wanna use the FFT and iFFT to do autocorrelation, you can get the same result as the MATLAB xcorr() by zero-padding $x[n]$ with as many zeros as input samples. Then the circular convolution will look just like linear convolution with the rectangularly-windowed input and you'll get the diamond shape. Of course that diamond envelope is deterministic and you can divide by it (someone did in some paper, but I can't remember who). It wouldn't even have to be a rectangular window. You could Hann window it and the envelope would look like the autocorrelation of Hann. $\endgroup$ Commented yesterday
  • 1
    $\begingroup$ @robertbristow-johnson nice — yes I typically do the circular (don’t like the ramps) but perhaps it’s also because of the kind of waveforms I work with. Thanks $\endgroup$ Commented yesterday
  • 1
    $\begingroup$ ..chat gods are soon going to yell at us for this long thread. - - - - - Yeah, you met Peter. He's the cat that keeps us lil' miceys in line. $\endgroup$ Commented 12 hours ago
  • 1
    $\begingroup$ But I think I get it. You have a constellation of spread spectrum basis symbols. You wanna know how flat the are and how decorrelated they are. And I can see doing that with circular convolution. $\endgroup$ Commented 12 hours ago