15,941,973 members
See more:
How can I convert a sound frequency into an audio file?

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

## Solution 1

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

http://www.iphonedevsdk.com/forum/iphone-sdk-development/45613-creating-audio-programmatically.html[^]

It looks like some proposed the question elsewhere recently, too. Perhaps this is you:

sariqkhan 31-Dec-12 8:15am

## Solution 2

This might helps you

http://channel9.msdn.com/coding4fun/articles/Generating-Sound-Waves-with-C-Wave-Oscillators[^]

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

v2
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.

http://www.sonicspot.com/guide/wavefiles.html
sariqkhan 31-Dec-12 8:15am
+5