getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: derTyp on April 29, 2017, 09:33:41 PM

Title: Corsair LED Plugin
Post by: derTyp on April 29, 2017, 09:33:41 PM
Hi,

I developed a little plugin for MusicBee which shows a simple spectrogram animation on Corsair Keyboards.

The reason why I did create it was that I am using MusicBee with WASAPI output and all available solutions were not able to visualize it because of the exclusive access to the soundcard.


For more information and the download please follow the link to GitHub.


The plugin is open source so feel free to open issues, send feature requests or implement them yourself ;)

GitHub: CorsairLED-MB-Plugin (https://github.com/sll552/CorsairLED-MB-Plugin)
Releases: Downloads (https://github.com/sll552/CorsairLED-MB-Plugin/releases)
Addon: MusicBee Plugin Page (https://getmusicbee.com/addons/plugins/100/corsair-led-plugin/)
Title: Re: Corsair LED Plugin
Post by: boroda on April 30, 2017, 07:49:41 AM
could you add this plugin to add-on's section of mb main site?
Title: Re: Corsair LED Plugin
Post by: derTyp on April 30, 2017, 02:37:56 PM
Sure, I will add the link as soon as it gets approved.
Title: Re: Corsair LED Plugin
Post by: Ronin47 on May 22, 2017, 08:09:11 PM
nice work mate
Title: Re: Corsair LED Plugin
Post by: Anvh on July 20, 2017, 09:03:14 PM
This so cool thank you!

It is working really well but I'm wondering if you would consider adding the gamepad and mouse as well to make it all complete? =)
Title: Re: Corsair LED Plugin
Post by: derTyp on July 20, 2017, 09:28:15 PM
To perform the actual light effects I am using a library (https://github.com/DarthAffe/CUE.NET) so I am limited to the devices supported by it.
Currently support for Mouse, Headset and Mousemat is implemented, so it would be possible to add these devices to the plugin.

The only problem I have, apart from time, is that I don't own any of these devices from Corsair to test with them. I think the CUE software has some virtual, emulated devices but I have not worked with them before. I will look into it as soon as I have more free time ;)
The second thing is that the possible effects on these devices are limited I believe. The only effect I can currently think of would be a simple beat visualization.

I will try to get something working with the virtual devices but I can't guarantee for it
Title: Re: Corsair LED Plugin
Post by: derTyp on February 04, 2018, 09:04:49 PM
Hi,

after a long time I have finished working on multi device support and released version 1.0.0 of the plugin. I could only test against the CUE Demo devices, so feel free to open Issues on Github if you see weird things happening on your device.

Also I added a very dodgy implementation of a beat effect which is not really where I want it to be, but it kinda works and will definitely be improved in the future.

These changes are also the foundation to add support for different manufacturers.

Best regards
Title: Re: Corsair LED Plugin
Post by: AndyBlak on February 08, 2018, 10:08:37 PM
Hey!

I just wanted to drop a quick thank you for this plugin! I was quite surprised when I saw a CUE plugin for MusicBee, but it is awesome! I also use WASAPI with my external DAC.

Anyway, the plugin works exactly as I expect, and I really enjoy the lighting effect on my Strafe RGB keyboard.

If possible, I would love to see integration with my Scimitar mouse, please.

Thanks again!

-Andy
Title: Re: Corsair LED Plugin
Post by: derTyp on February 08, 2018, 11:18:12 PM
In the current version all corsair devices (supported by CUE) should also work with the plugin.
What exactly is not working? Can you see the mouse in the device list? Or is it just not performing any effects?

Unfortunately I don't have a scimitar or any other corsair mouse to test.
Title: Re: Corsair LED Plugin
Post by: wawawa on March 08, 2018, 08:11:39 AM
Really nice plugin, but there's an issue on my K70 Rapidfire RGB, the last row on the numpad(-, +, Enter) is not included in the spectrograph as the LEDs in that row do not light up when in spectrograph mode, works fine when set to beat. Using the 1.0.0 release.
Title: Re: Corsair LED Plugin
Post by: derTyp on March 08, 2018, 11:56:46 AM
Thanks for the report, I opened an issue to track this https://github.com/sll552/CorsairLED-MB-Plugin/issues/8 (https://github.com/sll552/CorsairLED-MB-Plugin/issues/8)
Title: Re: Corsair LED Plugin
Post by: derTyp on March 10, 2018, 03:57:58 PM
Hi, could you try this version to see if it fixes the issue?

https://ci.appveyor.com/api/buildjobs/96x9s9dbgsr4re2v/artifacts/CorsairLED-MB-Plugin-Release-fix_keyboard_columns-34.zip

Edit:
Nevermind, released in v1.0.1
Title: Re: Corsair LED Plugin
Post by: wawawa on March 19, 2018, 01:18:42 PM
Hi, could you try this version to see if it fixes the issue?

https://ci.appveyor.com/api/buildjobs/96x9s9dbgsr4re2v/artifacts/CorsairLED-MB-Plugin-Release-fix_keyboard_columns-34.zip

Edit:
Nevermind, released in v1.0.1

Sorry for the late reply, thanks a lot, works fine now.
Title: Re: Corsair LED Plugin
Post by: Vessel2000 on July 20, 2018, 01:58:07 AM
Hi, just started using Musicbee and saw this plugin thinking "I NEED TO TRY THIS!" but it's not working :(
It's enabled under plugins and I've set both my K70 and M65 to spectrograph and once applied my keyboard goes black.
Restarted Musicbee and I had to go to plugins to enable it which I found weird. So I did and it's not picking up my keyboard or mouse when I hit configure. It just shows a blank white box.

Using

Musicbee version: 3.2.6760

Corsair iCUE version: 3.5.111
Title: Re: Corsair LED Plugin
Post by: derTyp on July 25, 2018, 07:50:37 AM
Hi,

sorry for the late reply, I seem to not be getting the forum notifications ...

I am aware of the Issue and think it's because of a change in the API that happened with the CUE->iCUE switch. I guess I have to release a hotfix version because a proper fix would require a library switch that in turn requires some code changes I can not estimate.

I will post back when the hotfix is released
Title: Re: Corsair LED Plugin
Post by: derTyp on July 25, 2018, 08:50:41 PM
Should be fixed with v1.0.2 please test and report back if you encounter any issues.
Title: Re: Corsair LED Plugin
Post by: Vessel2000 on July 28, 2018, 06:13:48 AM
Unfortunately still not working. Same issue as before, tried switching to an older version of CUE and that didn't work either :/
Title: Re: Corsair LED Plugin
Post by: derTyp on July 28, 2018, 01:51:02 PM
Ok, that is indeed unfortunate as I am not able to reproduce the issue ...

I mean what is kinda strange is that you could set the animation for the m65 to spectrograph because that should not be possible (this is actually a bug). But this should not be the cause for that.

Here are some things you could try:
  * Look at the Help->Support->Error Log in MusicBee
  * Delete all plugin related files (also the config in your %APPDATA%/MusicBee folder) and install it again.
  * If you are using the Microsoft Store version of MusicBee, please try again with the download version from the website.


Title: Re: Corsair LED Plugin
Post by: Vessel2000 on July 28, 2018, 08:53:05 PM
Good news! Reinstalled Music Bee and it works! Now I don't know if I should update CUE haha thanks! :)
Title: Re: Corsair LED Plugin
Post by: Kasuyi on July 29, 2018, 04:03:03 PM
Hey there, for some reason, when I tried to install your plugin, I wasn't able to enable it in MusicBee, when I tried to, I got a message saying "Unable to initialize this plugin: Object reference not set to an instance of an object." I tried everything: Uninstalling and reinstalling your plugin, uninstalling and reinstalling MusicBee, nothing worked. I have MusicBee version 3.2.6760, iCUE version 3.5.111. Dunno what is happening here :/
Title: Re: Corsair LED Plugin
Post by: derTyp on July 29, 2018, 04:45:16 PM
Are you using the Microsoft Store version of MusicBee?

As it is working for other people (including me) I guess something is different in your setup. Or maybe you have not copied all files and folders in the zip.
Title: Re: Corsair LED Plugin
Post by: Kasuyi on July 29, 2018, 05:25:18 PM
I'm not using the Microsoft Store version of MusicBee, and I've copied everything there is in the zip, hence why I came here, I didn't know what else to do besides come in the forums.
Title: Re: Corsair LED Plugin
Post by: derTyp on July 29, 2018, 05:32:50 PM
Do you have the SDK enabled in iCUE Settings?

Have you tried restarting MusicBee after the failed loading of the Plugin? I have had a problem with plugin loading one time in the past but it resolved itself after a MusicBee restart.
Title: Re: Corsair LED Plugin
Post by: Kasuyi on July 29, 2018, 05:48:44 PM
I do have the SDK enabled in iCUE and I've tried restarting MusicBee several times already without success. I have however one question: In your zip, there are two folders, x64 and x86, and you have to copy the one corresponding to your Windows OS version, either 32 or 64 bits, right?
Title: Re: Corsair LED Plugin
Post by: derTyp on July 29, 2018, 09:18:16 PM
Well thats why I asked if you copied ALL files from the zip...

These are the files required by the library I am using for the interaction with CUE. Both are required and the library decides which to load. So copy both and it should work.
Title: Re: Corsair LED Plugin
Post by: Kasuyi on August 02, 2018, 01:26:22 PM
Ok so I can get it to work when my Sabre RGB is plugged in, but whenever I try to use my K55, it doesn't work anymore and I get an error stating that an exception has been thrown by the target of an invocation.
Title: Re: Corsair LED Plugin
Post by: derTyp on August 02, 2018, 02:00:57 PM
I don't have a K55 to test but I guess the problem is that it is not a per-key RGB device (every key can be lit independent).
I guess I need to add an exception for this device, a workaround might be to disable it in the settings of the plugin.
Title: Re: Corsair LED Plugin
Post by: AndyBlak on August 04, 2018, 04:24:57 AM
In the current version all corsair devices (supported by CUE) should also work with the plugin.
What exactly is not working? Can you see the mouse in the device list? Or is it just not performing any effects?

Unfortunately I don't have a scimitar or any other corsair mouse to test.

My apologies for the delay in getting back to you. The spectrum/visualizer effects seem to only take place on my keyboard. I'll try to troubleshoot a bit more and isolate the specific cause, since it should be working.
Title: Re: Corsair LED Plugin
Post by: Turk on December 09, 2021, 05:35:50 PM
Dear OP

WOW & thank you for this. Superb job ! Works perfectly (for me) [k95]

Apologise in advance for off topic question - I only ask as you appear to be the most likely to have knowledge of both iCue & Musicbee's "inner workings".
Would you know of a way to control Musicbee's volume using a corsair kbd's vol rocker (in my case the K95) when mbb is running, but return to system audio when mbb is closed with out the need for secondary apps that are feature rich, but far to feature rich for such a supoosedly simple task?
I've tried with varying degrees of unsatisfactory success using Volume2* & Volumekey, both [sort of] work, no that's unfair they work but are either more than whats needed or begin to complicate a simple audio signal chain, I even thought I "found the fix" and wrote a tutorial at corsairs forum re Volume2 & set up, to later decide it wasn't the best method but the best I could find.  :-\

ANY help on this would be so welcome. I wish corsairs own iCue had the answer within, and assumed it would hence my purchase to find a nice volume rocker go to waste. [?]


ps here was my lame attempt at assuming I'd found the holy grail https://forum.corsair.com/forums/topic/150195-how-to-remap-the-volume-controll-at-a-k95-rgb/ (https://forum.corsair.com/forums/topic/150195-how-to-remap-the-volume-controll-at-a-k95-rgb/)
It was in response to anothers near identical, unasnwered question @ corsairs forums.
Title: Re: Corsair LED Plugin
Post by: derTyp on December 13, 2021, 08:28:50 PM
My setup has changed since I last tried this, but for me (with a K95 Platinum) it worked by setting the volume hotkey in MusicBee to "global". This way the volume dial on the keyboard only affected MusicBee as long as it was open.

(https://i.imgur.com/jpG93so.png)
Title: Re: Corsair LED Plugin
Post by: Starfighter on October 05, 2022, 07:54:00 AM
Hello! I'm having the same problem as Kasuyi! First I thought it's because the plugin is five years old and things obviously change, but Kasuyi had the same thing happen when it was new so perhaps there's a fix? I have the latest MB (downloaded from here, not from Microsoft Store) and I extracted the entirity of the zip file into Plugins. I have the SDK thingy enabled in iCUE and I've restarted both applications. I get the plugin to show up in MB but when clicking Enable I get the error message:
(https://i.imgur.com/IUnf2kK.png)

I'll try a PC restart and other common things I can think of, but other than that I'm not too great at finding the cause of problems. I'm better at running in to them! ;)
Title: Re: Corsair LED Plugin
Post by: thrKUBSONIK on January 16, 2023, 04:17:21 PM
Hello! I'm having the same problem as Kasuyi! First I thought it's because the plugin is five years old and things obviously change, but Kasuyi had the same thing happen when it was new so perhaps there's a fix? I have the latest MB (downloaded from here, not from Microsoft Store) and I extracted the entirity of the zip file into Plugins. I have the SDK thingy enabled in iCUE and I've restarted both applications. I get the plugin to show up in MB but when clicking Enable I get the error message:
(https://i.imgur.com/IUnf2kK.png)

I'll try a PC restart and other common things I can think of, but other than that I'm not too great at finding the cause of problems. I'm better at running in to them! ;)
registered just to reply to you
you need to put all the files you have in MusicBee/Plugins/CorsairLED straight into MusicBee/Plugins ;D