views:

1005

answers:

2

Hi,

I'm looking for a C# source code that performs a frequency analysis on a WAV file and displays the results in a graph, similar to the one displayed in apps like WavePad. Do you know where I can find such a code?

Thanks!

+1  A: 

It's in a very experimental state at the moment, but if you have a look at the WPFDemo project in NAudio, it performs an FFT on the incoming microphone data or sound file you play and plots it under the wave-form.

Mark Heath
Thanks, but I couldn't find where the app displays the WAV frequency. In fact, as soon as I loaded a WAV file and clicked "Play", it crashed...
ML
if you report the details of the error, I'll have a look into it. The FFT is drawn here:http://naudio.codeplex.com/SourceControl/changeset/view/28568#597541
Mark Heath
Can NAudio be routed to use the main system sound source? i.e. pick up windows' beeps and bleeps?
joshcomley
@joshcomley it might be possible with the CoreAudio wrappers for Vista and Win7, but I haven't experimented much with them yet
Mark Heath
A: 

Please download http://alvas.net/Download/Alvas.Audio.zip and see AudioExCs example.

ava