DTMF Goertzel Algorithm Not Working
问题 So I am opening a .raw file of a DTMF tone I generated in audacity. I grabbed a canned goertzel algorithm similar to the one on the wikipedia article. It doesn't seem to decode the correct numbers though. The decoded number also changes depending on what value of N I pass to the algorithm. As far as I understood a higher value of N gives it better accuracy but should not change what number would get decoded correct? Here is the code, #include <stdio.h> #include <stdlib.h> #include <math.h>