Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Sujoy I hail from Pakistan. I was searching on wav file processing and saw ur article on wav file processing. Thats eally wonderful and close to problem. I actually want to know how to get the frequency and amplitude of loaded file and to modify these values and play that modified file in stead of original file.
Posted

1 solution

There is not frequency and amplitude in the WAV data, there is a spectrum. Sometimes you can figure main frequencies, sometimes you cannot. Even if the sound is one pure tone, strictly speaking, its spectrum is a bit wider than one frequency point, because one fixed frequency signal (delta-function spectrum) is only a case of infinitely long signal. This is a matter of spectrum analysis.

Read this:
http://en.wikipedia.org/wiki/Frequency_spectrum[^]
http://en.wikipedia.org/wiki/Sound_spectrum[^]
http://en.wikipedia.org/wiki/Fourier_transform[^]
http://en.wikipedia.org/wiki/Fast_Fourier_transform[^]

AForge.NET library has Fourier transform methods, see http://code.google.com/p/aforge/[^].
I also found this: http://www.sdss.jhu.edu/~tamas/bytes/fftwcsharp.html[^].

—SA
 
Share this answer
 
v3
Comments
Viktor Signaievskyi 19-Dec-11 15:54pm    
true!)
Sergey Alexandrovich Kryukov 19-Dec-11 17:06pm    
Nothing but true :-)
Thank you, Victor.
--SA

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