4

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!

Nietzche-jou
  • 14,415
  • 4
  • 34
  • 45

1 Answers1

2

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
  • 48,273
  • 29
  • 137
  • 194
  • 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... –  Sep 07 '09 at 18:20
  • 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 Sep 07 '09 at 21:57
  • Can NAudio be routed to use the main system sound source? i.e. pick up windows' beeps and bleeps? – joshcomley May 18 '10 at 00:20
  • @joshcomley it might be possible with the CoreAudio wrappers for Vista and Win7, but I haven't experimented much with them yet – Mark Heath May 18 '10 at 08:36