1

I wish to implement a audio visualizer widget (similar to what Winamp has) in WPF. How would I approach this problem?

joemoe
  • 5,464
  • 8
  • 40
  • 57

2 Answers2

3

These two articles may be of use to you:

http://dotnetaddict.dotnetdevelopersjournal.com/3dhittesting.htm http://dotnetaddict.dotnetdevelopersjournal.com/datavisualizationwpf.htm

They're two articles in a series of 3D visualization using WPF. They're a bit targeted on intro WPF usage. Here are a few more:

http://blog.wpfwonderland.com/2009/01/30/data-visualization-toolkit-for-silverlight-descry/ Beats per minute from real-time audio input

In general, you'll want to do a bit of realtime analysis on the audio stream. Beat detection is an easy one - provide some sort of pulsing action that lines up with the beat, intensity increasing with volume, and so on.

Here's another fantastic article: http://knol.google.com/k/music-visualization-techniques#

And another similar question from StackOverflow: Creating music visualizer

Community
  • 1
  • 1
Anthony
  • 6,840
  • 1
  • 19
  • 22
3

If you don't want to spend too long implementing the whole solution around this, I'd recommend you check out NAudio. It has audio capture and playback, along with a good amount of visualisation stuff OOTB.

ZombieSheep
  • 28,629
  • 10
  • 64
  • 112
  • 1
    Unrelated to the question, but thanks for the NAudio link. I've been looking for a .net mp3 playback library for ages. – jtjin Dec 19 '09 at 04:46