12-31-2018 09:37 AM
Hi,
im planning to build a project which have a referenced recorded signal.
i have a unit that produce an audio tone , this tone will be sampled and compared to the refernced signal.
i need to develop a code that finds if the sampled tone includes/similar to the referenced signal.
negelect the HW which is required, any idea how to start it ?
12-31-2018 01:37 PM
Use a Fast Fourier Transform (FFT). Take a FFT of your reference signal and then compare the FFT of your input signal to that. It would be best to make the sampling rate and duration the same for both signals.
This is all I got unless you provide a little more detail on what you are trying to do.
12-31-2018 06:01 PM
Agree with other comment. Just do an FFT and see if the frequency component of the tone is there.
01-01-2019 11:00 AM
If your tone is not continuous then try a short time Fourier transform or use a cross correlation in the time domain to find the time of your signal.
mcduff