MusicBee & Add-Ons => Customizations => Plugins => Topic started by: DJC👽D on March 07, 2018, 01:42:42 PM

Title: LikeADJ - Hue lighting and more...
Post by: DJC👽D on March 07, 2018, 01:42:42 PM
As I am a MIXXX ( user and want sometimes to listen my music at home with MusicBee (mixing genres smoothly, having a nice transition, disco 💡, and 🐝 in my sofa...):

I wrote a little plugin which automix your 'nowplaying' playlist according to:

Of course (depending on what you want to use):

tags must be filled in order to use this plugin correctly, but you can use too this plugin ONLY for Hue lighting (with beat detection) : no tagging required for this feature.

If you use 'Hue lighting (', you have before to verify/update firmwares on your Hue bridge and your Hue lights via the official Hue application available on Android or IOS because I use directly REST/JSON requests embeded in the Hue Bridge to pilot Hue lights and latest firmwares are required for better responsiveness (firmwares update take a while, so be patient).

If you use 'Harmonic Mixing', you have to create a 'custom tag 1'  into MusicBee->Edit->Edit preferences->Tags (1) like this :
Custom 1:  Display Name: Key  Save to music file as tag: Initial Key

If you use 'Energy', you have to define a new tag into MusicBee->Edit->Edit preferences->Tags (1)->Define New Tags like this :
Identifier: Energy id3(.mp3): EnergyLevel
and you have to create a 'custom tag 2'  into MusicBee->Edit->Edit preferences->Tags (1) like this :
Custom 2:  Display Name: Energy  Save to music file as tag: Energy

To understand Camelot notation see Harmonic Mixing (
For BPM and 'Initial Key' tagging see TuneXplorer ( or MixedInKey ( or Mixxx (
For Energy tagging see MixedInKey (
For 'Track Rating' and 'Genre' tagging MusicBee is perfect.

Download mb_LikeADJ.dll ( in your MusicBee\Plugins directory, activate the plugin and configure it.
Once it's done, shuffle your entire collection and the next song will be auto mixed following your choices and so on…

Code source on GitHub (
Latest version of mb_LikeADJ.dll ( on GitHub (see commits (
If you're interested, help for code optimization, bugs fixing or adding new features is welcome.

In 2.0.3 Beta, you can now select lights you want to use + an infinite loop detection if no next song is found.
In 2.0.4 Beta, the timer of beat detection is now configurable (I recommend 750ms) + if no ini file found LikeADJ is able to create a new one + you can disable logging of beat detection and lights color change + minor fixes.
In 2.0.5 Beta, just some fixes.
In 2.0.6 Beta, Energy and Genres have been added.
In 2.0.7 Beta, improvements concerning beat detection (subband) (I recommend henceforth 200ms).
In 2.0.8 Beta, brightness range of lights (on beat detection) added, code cleaned.
In 2.0.10 Beta, well I am back after one year :) BIG BIG bug fixed if MusicBee is installed (not in the portable version), because if UAC ( is activated LikeADJ has not all privileges to write ini and log files, sorry for that but I use the portable version. Now you can generate playlist based on your choices and save songs played via LikeADJ into a playlist.
In 2.0.11 Beta, just a few corrections regarding the checkcombobox that loses focus when saving checked genres.
In 2.0.12 Beta, just some fixes concerning playlist generation.
In 2.0.13 Beta, now I check if MusicBee is installed or portable and write LikeADJ files in the right location.
In 2.0.14 Beta, various improvements. Next version will be Release Candidate, I think. GitHub created for LikeADJ (
In this new 2.0.15 RC, only one DLL mb_LikeADJ.dll, no more interference with others Newtonsoft.Json dll in the same directory. Code released on GitHub.
And since..., see commits ( on GitHub.

For better results in your mix with MusicBee, don't forget to activate into MusicBee->Edit->Edit preferences->Player:

Prefer 'WASAPI' or 'ASIO' (if you have a controller and drivers) output for a better sound.

Have a l 8) 8) k to the REALTIME logfile mb_LikeADJ.log to see more informations (accessible directly via the LikeADJ plugin configuration panel or via 'Right Click' -> 'View the mb_LikeADJ.log' on the main panel of MusicBee).

Happy MIXING and a lot of thanks to Steven for MusicBee.

Two algorithms ( have been implemented (simple and subband) for BEAT detection + a red alert of ending song + lights changes when track change.

I have 19 Hue (lights, lightstrips and bloom) (MAX 20 per Hue bridge) and it is the maximum for my Hue bridge. More Hue lights you have, lesser is reactivity.

Report bugs in this thread... I am currently improving the beat detection (actually better for disco, techno, deep house, electro... in short with BEATS) and other things...

Keep in mind Hue lights are not a DMX ( solution so responsiveness is lesser but acceptable for a party with friends...

You 👍/👎 this plugin ? Found a bug ? Want more features ? You do not know what this plugin is for ? More precisons, more help ?
Tell me (même en français)... Leave a reply in this post... Your welcome (bad or good replies).
Title: Re: LikeADJ
Post by: boroda on March 18, 2018, 11:05:23 AM
you need to make a new post (rather than updating existing) to others see that there is something new without opening this board (also new post will move your thread to the top).
Title: Re: LikeADJ
Post by: MC_K3NNA on September 19, 2018, 08:54:24 AM
THX for your Plugin.  But how do i use it?
Is there a Window with the recomended Tracks?
Im a total newbee with MB.
So i have no idea how to get your Auto DJ started.
And whats with Philips Hue? Do i need an additional Plugin to use them?
how does this even work?

Title: Re: LikeADJ
Post by: DJC👽D on September 23, 2018, 02:35:34 PM

For Hue, no additionnal plugin is required, LikeADJ is able to control your Hue Lights with JSON requests.

You have to fill tags on yours MP3 with required informations like (BPM, Initial Key on so on...) to use this plugin fully.

And activate features you want to use via the plugin configuration panel.

Read carefully my procedure in the first post, it's perhaps a little bit complex the first time.

Once it's done, shuffle your library and LikeADJ do the rest...

Take time, if you are a newbie with this superb software which is MusicBee, to know how to use it.

Another version is coming, with auto playlist generation and playlist saving.
But I am a little bit busy for now...

Stay tune ;)

Title: Re: LikeADJ - Hue lighting and more...
Post by: mafiadysio on May 06, 2020, 04:55:43 AM
Hi. I am wondering if anyone faces the problem of this plugin causing musicbee to steal focus whenever the next song is played (when this plugin is enabled). When I am fullscreen in another application, my screen will be forcefully directed to musicbee upon the start of the next song. It's annoying, and I wonder if there's a way to fix that?
Title: Re: LikeADJ - Hue lighting and more...
Post by: DJC👽D on May 06, 2020, 12:35:24 PM

I don't arrive to reproduce this problem (for now but I investigate). The only window that can be annoying is when LikeADJ is trying to find the next music.

Title: Re: LikeADJ - Hue lighting and more...
Post by: mafiadysio on May 07, 2020, 11:40:03 PM
Hi, thanks for the reply.

I suspect the window that pop ups (the 'trying to find next song') whenever the next music starts to play is the cause of the problem here. Full-screen application aside (it was a Steam game btw), even when using another another program (like Google Chrome), the appearance of that window will just pop up even when Musicbee is minimised. That alone is annoying, even if it appear for like a fraction of a second every time the next song plays.

I wonder is it possible to make it such that the windows doesn't appear?

Thanks for the plugin by the way. I liked it a lot!
Title: Re: LikeADJ - Hue lighting and more...
Post by: DJC👽D on May 08, 2020, 08:58:52 AM

I added an option to allow/disallow the scanning message box.

Download the latest mb_LikeADJ.dll ( and tell me when the message box is not allowed if the problem persist.

Have a nice day
Title: Re: LikeADJ - Hue lighting and more...
Post by: mafiadysio on May 08, 2020, 12:40:32 PM
Hi, it seems to me that the Configuration window ( is missing an 'OK' button. I can't confirm my settings to try out the new change.
Title: Re: LikeADJ - Hue lighting and more...
Post by: DJC👽D on May 08, 2020, 01:06:53 PM
I am currently fixing this problem. You can however enlarge the window with your mouse for now.
Title: Re: LikeADJ - Hue lighting and more...
Post by: mafiadysio on May 08, 2020, 01:26:29 PM
Ohh. I did not think to enlarge the window! That was dumb of me. Sorry about that.

But yeah, the problem is resolved now. The window does not appear any longer, and Musicbee does not steal focus from full-screen applications whenever the next song comes. Thanks for continuing to develop this plugin!
Title: Re: LikeADJ - Hue lighting and more...
Post by: DJC👽D on May 08, 2020, 01:35:16 PM
I think the bug is fixed

Download the latest mb_LikeADJ.dll (

And of course happy you like my little contribution, Thanks :) and for Steven too +100000² 👍
Title: Re: LikeADJ - Hue lighting and more...
Post by: mafiadysio on May 08, 2020, 02:09:24 PM
Yep, I see the 'Save' and 'Cancel' buttons now. Everything seems to be going smoothly. Thanks a million!!
Title: Re: LikeADJ - Hue lighting and more...
Post by: DJC👽D on April 07, 2021, 04:44:59 PM
So I bump ;). Once a year. This project is not dead. Ready for ideas and others things...
Title: Re: LikeADJ - Hue lighting and more...
Post by: Mr. Trev on July 23, 2021, 07:55:19 PM
Interesting plugin.

Since I'm in no way a DJ, I was wondering if there are any small, accurate programs to just do the analysis?
I can pull the key and BPM from Musicbrainz, but only if they have album in their database.

I'm hoping that your plugin can work something like the SenseMe Channels on Sony devices (best thing Sony has done in ages IMO. if only they'd open source it so folks could adapt it for other programs)