15,942,067 members
See more:
Hi, I'm trying since some time, to recognize the frequency of a sound, I mean, I want to make a sound with the system horn of my PC, and I want to create a software that can recognize the frequency of that sound. If someone knows something about this theme, please help me...

my mail is [email address removed to protect user]

thanks
Posted
Updated 7-Feb-12 11:37am
v2
Sergey Alexandrovich Kryukov 7-Feb-12 16:48pm
Seriously? What's a "horn"? A horn, not a sound card + speakers? :-)
--SA
DaveyM69 7-Feb-12 17:39pm
You will receive an email notification if anyone posts a solution or comment, which will then be here for all to benifit from and not just in your email inbox.

## Solution 1

In the case of general-case complicated sound, this problem is very difficult, in a very general case practically unresolvable. However, if this is a prolonged beep with some dominated frequency (or small number of fixed frequencies), this is a relatively simple thing.

You should understand this very well:
http://en.wikipedia.org/wiki/Spectral_Analysis[^],
http://en.wikipedia.org/wiki/Fourier_analysis[^],
http://en.wikipedia.org/wiki/Fourier_transform[^],
http://en.wikipedia.org/wiki/Fast_Fourier_transform[^].

You can find the whole set of relevant techniques in this CodeProject article:
FFT Guitar Tuner[^].

—SA

v2

## Solution 2

Yes, the general idea is that i can generate the sound I want with the frequency I want with the horn of the system. I know that is really old and may be is not the best solution, but this is just a way to generate the sound with the frequency I need, the real problem I have is to recognize the sound and its frequency.

pd: Sorry, my English is not so good

## Solution 3

For generating the tone you can use Console.Beep[^].