Click here to Skip to main content
15,941,973 members
Please Sign up or sign in to vote.
5.00/5 (5 votes)
See more:
How can I convert a sound frequency into an audio file?

Please give me some ideas on how to do this.
Updated 9-Mar-11 6:37am
Manfred Rudolf Bihy 9-Mar-11 12:38pm    
Sounds interesting, have my 5!

I would post this question on the comment section for:
Play and Visualize WAV Files using Managed Direct Sound with VB.NET[^]
Perhaps the author will help you.

Google returned this:[^]

It looks like some proposed the question elsewhere recently, too. Perhaps this is you:[^]
Share this answer
sariqkhan 31-Dec-12 8:15am    
+5 for the links
This might helps you[^]

Just fundamental notes. The audio is a wave and a single frequency occurs in sine wave form. The length between the crest/ trough (wave length) is related to its frequency. So if you put points at specific intervals in the wave plot of a particular frequency then the point has two values like x and y in Cartesian plane. Here the X is time and Y is amplitude. So X is just increment of samples/bytes (depends on datatype). Y is the value in the bytes. This amplitude vary gradually according to the frequency curves. From this fundamental you could generate sound samples of a frequncy then write in any known audio format.

If you want to separate a frequency from a complex sound data then fourier transform helps.

I given a startup, go on and best of luck
Share this answer
Albin Abel 9-Mar-11 13:49pm    
hmm sorry. I haven't watch your tags. It is java and matlab. So take only my notes and forget that link
Albin Abel 9-Mar-11 13:56pm    
Here is a detailed link for wave file format, which would be helpful if you manually write (without help of libraries) the wav file.
sariqkhan 31-Dec-12 8:15am    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900