DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Detect a specific frequency tone (http://www.daniweb.com/forums/thread159459.html)

Lukezzz Nov 25th, 2008 1:54 pm
Detect a specific frequency tone
 
I have a general question. Is it possible to write a C++ program that can detect specific frequency tones, like 1 Mhz, 2Mhz 3Mhz etc...
Until now I have written standard code in C++ both native and mangaged and can manage the most components etc.. so I have a very good start.
Is this very different and could this be seen as much more difficult.
What could be my start to do this.

The goal is simply this: To detect a single frequence tone and then some simple code will execute.

MosaicFuneral Nov 25th, 2008 2:02 pm
Re: Detect a specific frequency tone
 
What type of input, and what sort of format is it in?

Ezzaral Nov 25th, 2008 2:03 pm
Re: Detect a specific frequency tone
 
An FFT would isolate it very easily. There a a lot of implementations already available in C++.

Lukezzz Nov 25th, 2008 2:32 pm
Re: Detect a specific frequency tone
 
I would have a mp3 file on the computer that a program will access and play. The signal will be a single frequency tone.

I wonder if I need to output this signal trough the LineOut of the computer and then to LineIn again or is it possible to detect the sound directly internally.

I am reading about the FFT now. It seems quite difficult but are not sure yet.


Quote:

Originally Posted by Ezzaral (Post 744551)



All times are GMT -4. The time now is 5:02 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC