Author Topic: API Question NowPlaying_GetSpectrumData  (Read 4706 times)

Syrome

  • 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 :)

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34312
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

Syrome

  • 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

KangNi

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

Some months before your post I was started a thread about this already:
http://getmusicbee.com/forum/index.php?topic=15512.msg92155#msg92155

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?

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