Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start writing a music visualizer in C++? [closed]

Tags:

I'm interested in learning to use OpenGL and I had the idea of writing a music visualizer. Can anyone give me some pointers of what elements I'll need and how I should go about learning to do this?

like image 929
victor Avatar asked May 04 '09 12:05

victor


People also ask

How do you turn on a visualizer?

Turn on visual effects: Choose Window > Visualiser. To change visualizer options, choose Window > Visualizer Settings > [option]. For example, to show or hide music videos, choose Window > Visualizer Settings > Play Videos. A tick means that videos will play.

How does a music visualizer work?

An audio waveform visualizer works by extracting frequency information from the audio and feeding this data through some display rules. Audio waveform visualizers create animated waveforms (audiograms) that shift with the rhythm, loudness, and frequency of the audio.


1 Answers

If you use C++/CLI, here's an example that uses WPF four (fourier that is;) display.

He references this site (archived) that has considerable information about what your asking, here's anoutline from the specific page;

How do we split sound into frequencies? Our ears do it by mechanical means, mathematicians do it using Fourier transforms, and computers do it using FFT.

  1. The Physics of Sound
    • Harmonic Oscillator
  2. Sampling Sounds
  3. Fourier Analysis
  4. Complex Numbers
  5. Digital Fourier Transform
  6. FFT

Ahhh, I found this (archived) a few minutes later, it's a native C++ analyzer. Code included, that should get you off and running.

like image 72
RandomNickName42 Avatar answered Oct 03 '22 19:10

RandomNickName42