Click here to Skip to main content
15,888,351 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.
Posted
Updated 9-Mar-11 6:37am
v2
Comments
Manfred Rudolf Bihy 9-Mar-11 12:38pm    
Sounds interesting, have my 5!

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
 
Share this answer
 
v2
Comments
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
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:
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:
http://www.vbforums.com/showthread.php?t=639102[^]
 
Share this answer
 
Comments
sariqkhan 31-Dec-12 8:15am    
+5 for the links

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