I am looking for a fast algorithm to measure auto- and crosscorrelation of audio signals. Do you have an idea or a good example (float would be great). Is it necessary to window the sample blocks (Hamming etc.) like in FFT ?
Another question regarding autocorrelation is:
If I have a sample buffer of let's say 512 samples is it necessary to have the following buffer to do the autocorrelation for this buffer or not?
(I presume that the lower frequency range of my measurement will be limited by the buffer size - but this is ok).
thanks for help
I don't have much experience in auto/cross correlation with moving signals (music signals), only fixed buffers of captured data for analysis (on a project I worked on involving a video geometry correction IC for National Semiconductor) so windowing was not needed. I am guessing you are doing beat or pitch detection here and unfortunately I don't have any C++ code ready for that. You can also do autocorrelation with FFT and IFFTs so on a moving signal I would guess that windowing would be appropriate. Sorry I don't have a better answer for you.
thanks for your reply. I found a small peace of code wich seems to work. Your guess is right, I use autocorrelation to find out when a trigger signal (2k eg.) is in my incoming audio buffer. I don't have much experience in autocorrelation either - and my buffer is small to keep the delay low - so I have to play a little bit with my settings. If you are interested in this subject - I spotted an interesting PDF in the net : YIN, a fundamental frequency estimator (easy to google). I read that Paul Stoffregen (from teensy) uses this algorithm for his pitch estimation routine.
Most Users Ever Online: 152
Currently Browsing this Page:
Guest Posters: 1
Newest Members:channa, bvaccaro, HCassell, Max, Sim1, Chris Wade-Evans, Marlow, kcmixs2, DanieleR, jimjulian
Moderators: W Pirkle: 391
Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 391