News for hackers. Stuff that matters.
Re:The Goertzel Algorithm by wbhart on Saturday October 22, 2011 @10:28AM (#3143564)
Shouldn't this be "faster tone detection algorithm".

I don't see how to perform a convolution with this algorithm, which I would be able to do if it was an FFT.

There are many algorithms for FFT that are faster, e.g. the split radix FFT, Gentleman and Sande's approach, the Matrix Fourier Algorithm and scores of variations on a theme. The article doesn't make clear whether this is one of them.

Re:The Goertzel Algorithm by colanderman on Saturday October 22, 2011 @10:39AM (#3143589)
You are correct. The title is very misleading.
Re:The Goertzel Algorithm by dhotson on Saturday October 22, 2011 @10:46AM (#3143599)
My apologies, this stuff is still pretty new to me.
Re:The Goertzel Algorithm by wbhart on Saturday October 22, 2011 @07:33PM (#3144624)
Thanks for changing the title.
Re:The Goertzel Algorithm by amalcon on Saturday October 22, 2011 @12:01PM (#3143728)
Indeed, a faster multi-frequency fourier transform would be a huge deal. It would speed up everything that involves multiplying large numbers (encryption, but also lots of biology and other scientific problems), due to FFT multiplication.
Re:The Goertzel Algorithm by mdda on Saturday October 22, 2011 @10:29AM (#3143567)
Not explicitly stated in the article : The reason this is so fast is that you're only detecting a single frequency. If you wanted to detect a few (M, say), you'd have to keep updating M sets of Qs. While M<<N this is really efficient (and each one looks like a notch filter, or something).

But for larger M, it's better to do the FFT, since that gives you back O(N) frequencies in O(NlogN) time - because of the tricks it can do with N if it's a power of 2.

Re:The Goertzel Algorithm by wnoise on Saturday October 22, 2011 @03:06PM (#3144100)
> with N if it's a power of 2.

with N if it's highly composite. See, e.g. http://www.fftw.org/ which works fairly well even for non-powers of 2.

Re:The Goertzel Algorithm by mdda on Saturday October 22, 2011 @05:36PM (#3144383)
Very interesting : I was actually thinking about redoing the spectrometer music visualization for MythTV to be use 'piano keyboard' pitches (rather than the FFT that they're using at the moment). And I came to the conclusion that some kind of recurrence (short) resonant filter would do the trick (with 88 different copies) - but never got further than that, since I had limited imagination about what algorithms to search for. Unfortunately, I've got overwhelmed with other projects now...
Re:The Goertzel Algorithm by shasta on Saturday October 22, 2011 @06:36PM (#3144499)
If you only want to detect one frequency, can't you jut use the "slow" fourier transform?
Re:The Goertzel Algorithm by mahadri on Saturday October 22, 2011 @07:32PM (#3144622)
Yes, the discrete Fourier transform (DFT) detects N frequencies in parallel, where N is the block size, and you can disregard the uninteresting frequencies. The fast Fourier transform (FFT) is an efficient algorithm that computes the DFT. For detecting M frequencies where M << N, the Goertzel algorithm requires less computation than the FFT. Also, the Goertzel algorithm allows targeting more exact frequencies regardless of the sampling rate (Fs), while the FFT's bins have a fixed spacing of ±Fs/N.

As with everything, there are trade-offs associated with these three options.

Re:The Goertzel Algorithm by skew on Saturday October 22, 2011 @08:25PM (#3144710)
This looks like a row of a DFT, but using the history variables and the single cosine to avoid computing the coefficients from scratch.
Re:The Goertzel Algorithm by shollos on Saturday October 22, 2011 @08:32PM (#3144724)
You can find C code for the Goertzel algorithm at: http://www.exstrom.com/journal/sigproc/index.html
Re:The Goertzel Algorithm by Thrymr on Saturday October 22, 2011 @10:04AM (#3143523)
Cool, but news? Article is from 2002.
Re:The Goertzel Algorithm by Kliment on Saturday October 22, 2011 @10:25AM (#3143560)
It was definitely new to me. I don't mind old technical articles if they are still relevant, and this one definitely is.
Re:The Goertzel Algorithm by scott_s on Saturday October 22, 2011 @11:48AM (#3143704)
Despite the name of the site, it's accepted that not everything that is posted is exclusively "news."
Re:The Goertzel Algorithm by 3oheme on Saturday October 22, 2011 @10:27AM (#3143561)
Well, it's some kind of news because I've never heard about that :-D

I find it really interesting

Re:The Goertzel Algorithm by tef____ on Saturday October 22, 2011 @10:37AM (#3143585)