Author Topic: how can I create a musical spectrum analyzer (similar to winamp)  (Read 248 times)

ericktux

  • Posts: 2
good afternoon brothers, I am developing a winamp-type program. My question is, how can I create a musical spectrum analyzer (vumeter)? They are like bars that move when they detect sound.

greetings brothers

Ian @ un4seen

  • Administrator
  • Posts: 24048
You would use FFT data from BASS_ChannelGetData in a spectrum analyzer. An example of doing that can be found in the SPECTRUM example that's included in the BASS package, so you could have a look at that for some ideas. It has a few different display modes, with mode 1 most closely resembling your screenshot (you can change the "BANDS" value to change the number of bars).