-1

I've written an audio spectrum visualizer as you can see on the following screenshot. It works pretty well but the peaks are not really normalized. I think this is caused by this fact: Equal-loudness contour.

Does anybody know how to get balanced peaks (like a horizontal line)?

Here is my code: https://github.com/frankred/openFrameworks-music-visualization/blob/master/ofApp.cpp

enter image description here

Frank Roth
  • 6,191
  • 3
  • 25
  • 33

2 Answers2

1

Well, if you already know the equal-loudness contour, why not divide by it?

Abhay
  • 768
  • 4
  • 13
0

Is your horizontal scale linear frequency? Usually, a log frequency scale (i.e., equal dimension per octave-based) is more effective than linear in illustrating spectral distribution of audio.

  • I'm not really sure about what you mean. I get this spectrum out of FFT (see function fft::powerSpectrum on file https://github.com/frankred/openFrameworks-music-visualization/blob/master/fft.cpp) – Frank Roth Mar 29 '15 at 12:46