It's not what your program can do, it's what your users do with the program.
It's not what your program can do, it's what your users do with the program.
It's not what your program can do, it's what your users do with the program.
It's not what your program can do, it's what your users do with the program.
It's not what your program can do, it's what your users do with the program.
Joe Areeda wrote:You have a bit too much code there for me to digest with the time available. So allow me to make general comments rather than debug it.
What are the arguments to that Goertzel function you are using?
Please note that running that on 5000 frequencies is not going to be more efficient or effective than doing an FFT, but it's not going to hurt the algorithm either.
I'm not sure but I think what you're missing is the relationship between the Time and Frequency Domain.
If you take a Fourier Transform over you're whole input signal you get one set of frequency/phase values that it takes to recreate the whole waveform. The On/Off nature of your dial tone will require a lot of power in frequencies not in the tones to capture that.
I would suggest you work with multiple transforms of short segments of data something on the order of 0.1 s is probably good enough. Then when you run the transform (whatever variant) you'll get some periods that are a pure tone of 425Hz. And the segment number will allow you to relate it to the time at which it occurred.
It would be much easier for me to explain this if I had a .wav file of the signal you're working with. If it's not too much trouble please attach one to your response. I'll see if I can come up with an example from something I have lying around.
Joe
Joe Areeda wrote:I just reread my previous post and I want to clarify one point.
If you capture at 44KHz you're going to have very good frequency resolution but still 425Hz is not going to be an exact spike in the Frequency Domain so you will get power is some other frequencies as well but it will be very close.
Joe
It's not what your program can do, it's what your users do with the program.
Why fit in when you were born to stand out? - Seuss. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|