Author Topic: API Question NowPlaying_GetSpectrumData  (Read 4297 times)


  • Guest
I'm trying to write a plugin that allows me to sync my hue lights to the music played by MusicBee.

How does this function (NowPlaying_GetSpectrumData) work? I can supply an float array and get back an int. What's the meaning of them?

I want to get the "bass" of a song to change the lights. Is there a better way to do this e.g. another function or so?

Thanks you :)


  • Administrator
  • Hero Member
  • *****
  • Posts: 33705
i cant check until tomorrow but from memory you would need to declare a float array of some multiple of 512 (4096 is probably right), the value returned will be the number of data points actually calculated and the array passed in has values -1 to 1 with the fft calcuated values


  • Guest
Thanks for your fast reply. I've got a first version working. I'll post it on the forum as soon as it's stable enough! ;D


  • Full Member
  • ***
  • Posts: 167
Hi "Syrome",

Some months before your post I was started a thread about this already:

Unfortunately no one did replied on this.

Just now I found this threat here and I'm really exited to now how your progress is on this?

Last Edit: August 09, 2017, 08:53:41 PM by KangNi