The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > Corsair Utility Engine (CUE) 1.x and 2.x > CUE 1.x and 2.x SDK

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-12-2015, 07:45 PM
AterialDawn's Avatar
AterialDawn AterialDawn is offline
Catgirl Enthusiast
AterialDawn's PC Specs
 
Join Date: Oct 2015
Posts: 13
POST ID # = 813714
AterialDawn Reputation: 10
Default Keyboard Audio Visualizer

This is a Visualizer for Corsair RGB keyboards using the CUE-SDK C# Wrapper (http://forum.corsair.com/forums/showthread.php?t=149863) written by Darth Affe, and the Bass Library/Bass.net.

Using WASAPI (Vista+) I am able to grab currently playing sound, and write some neat visualizers for it. As soon as the SDK released I immediately thought of converting that project to a keyboard visualizer and I must say that it looks quite good!

Demo Video:

Github repo is : https://github.com/AterialDawn/CUEAudioVisualizer

Compiled binary is attached below.

A plugin system for adding more visualizers is pending, and any and all feedback is appreciated. The code is not final and probably will be changing a lot.

Credits go to Darth Affe for his incredibly handy CUE-SDK C# Wrapper, LegifyX for the Icon, and me for the incredibly hideous code.

Changelog:
v1.0.0 : First release

v1.0.1 : Settings are actually saved now! Whoops.

v1.2.0 : More robust WASAPI error handling, few more visualizers added, and plugins support (documentation coming soon™)

v1.3.0 : Added a sensitivity slider, as well as a smoothing slider. Located in the Options submenu.
Attached Files
File Type: zip CUEAudioVisualizer_v1.2.0.zip (453.8 KB, 6356 views)
File Type: zip CUEAudioVisualizer_v1.3.0.zip (449.5 KB, 39712 views)

Last edited by AterialDawn; 11-04-2015 at 05:37 AM. Reason: Changelog
  #2  
Old 10-12-2015, 07:49 PM
krazykid's Avatar
krazykid krazykid is offline
Alex Krastev
 
Join Date: Mar 2015
Location: San Jose, California
Posts: 2,867
POST ID # = 813715
krazykid Reputation: 30
Send a message via Skype™ to krazykid
Default

So this?
http://forum.corsair.com/v3/showthread.php?t=139027

Edit: its time to get up to date Elestriel! :P

Last edited by krazykid; 10-14-2015 at 03:12 PM.
  #3  
Old 10-12-2015, 07:53 PM
AterialDawn's Avatar
AterialDawn AterialDawn is offline
Catgirl Enthusiast
AterialDawn's PC Specs
 
Join Date: Oct 2015
Posts: 13
POST ID # = 813717
AterialDawn Reputation: 10
Default

That requires CUE to be closed as it talks directly to the keyboard, this uses the official SDK to talk to the keyboard so CUE can be left running, plus with this app you can select a device to use as it's audio source.
  #4  
Old 10-13-2015, 02:21 PM
Darth Affe's Avatar
Darth Affe Darth Affe is offline
//TODO add user title
Darth Affe's PC Specs
 
Join Date: Sep 2015
Location: UTC+1
Posts: 127
POST ID # = 813877
Darth Affe Reputation: 15
Default

Yay, this looks really cool :)

If it's fine with you, I'd really like to adopt parts of your audio analysis into my spectrum example project (for V1.0), since it looks way better, than the one I wrote :p
  #5  
Old 10-13-2015, 04:52 PM
AterialDawn's Avatar
AterialDawn AterialDawn is offline
Catgirl Enthusiast
AterialDawn's PC Specs
 
Join Date: Oct 2015
Posts: 13
POST ID # = 813917
AterialDawn Reputation: 10
Default

Of course! Feel free to do whatever you want with the code, as long as some form of credit is given!
  #6  
Old 10-15-2015, 12:59 PM
DracroniC DracroniC is offline
Registered User
DracroniC's PC Specs
 
Join Date: Oct 2015
Posts: 5
POST ID # = 814393
DracroniC Reputation: 10
Default

Good stuff. Does exactly what it's supposed to and well. I like how this one responds to the low end a lot better than the other options.
  #7  
Old 10-15-2015, 01:19 PM
Aazelion Aazelion is offline
Registered User
Aazelion's PC Specs
 
Join Date: Oct 2015
Posts: 3
POST ID # = 814401
Aazelion Reputation: 10
Default

Registered just to post that i love using this on my K70 since it just works and dont have configure much or close CUE,

just a small problem i got who knows how, basically i get this whenever i want to open 1.0.1, it used to work with no problems



1.0.0 Works, but of course doesn't save settings

Thanks!
  #8  
Old 10-15-2015, 03:45 PM
Tomandresen Tomandresen is offline
Registered User
Tomandresen's PC Specs
 
Join Date: Oct 2015
Posts: 2
POST ID # = 814455
Tomandresen Reputation: 10
Default

Had a quick look in Github, the app uses the .Net Properties API, and so stores its settings in the folder %userprofile%\appdata\local\CUEAudioVisualizer.

Delete that folder, and you'll have a clean slate. For me, I got that error when it didn't like the audio device I selected (headset loopback device).

I wonder if the author has any tips on how to resolve this?

Edit: After a bit of tinkering, I was able to get it to work by enabling and using the stereomix recording device of my onboard realtek audio, but of course, this only works when I use the onboard audio to play sound, and not my USB headset.

Last edited by Tomandresen; 10-15-2015 at 03:58 PM.
  #9  
Old 10-15-2015, 08:15 PM
Aazelion Aazelion is offline
Registered User
Aazelion's PC Specs
 
Join Date: Oct 2015
Posts: 3
POST ID # = 814521
Aazelion Reputation: 10
Default

I did delete folder workaround, and it did fix it, Thanks!

Seems weird to me, its like something else on my PC broke it.
  #10  
Old 10-15-2015, 09:39 PM
EddieF430 EddieF430 is offline
The *****Nado
EddieF430's PC Specs
 
Join Date: Sep 2014
Posts: 8
POST ID # = 814531
EddieF430 Reputation: 10
Default

How is the lag between the visualizer and when it shows up on the keyboard? Really anxious to finally DL something like this.
  #11  
Old 10-16-2015, 12:14 AM
AterialDawn's Avatar
AterialDawn AterialDawn is offline
Catgirl Enthusiast
AterialDawn's PC Specs
 
Join Date: Oct 2015
Posts: 13
POST ID # = 814548
AterialDawn Reputation: 10
Default

Quote:
Originally Posted by Aazelion View Post
-snip-
Ahh, okay, I can fix that. Gonna take me a few days cause i'm working on a few other things but I can definitely fix that!
  #12  
Old 10-16-2015, 12:29 AM
dbronx dbronx is offline
Registered User
 
Join Date: Oct 2015
Posts: 2
POST ID # = 814550
dbronx Reputation: 10
Default

I seriously don't understand any of this. Any assistance? I just want to simply try it out and test it out. But I don't get half of what you guys are saying.... And I call my self a nerd -_-
  #13  
Old 10-16-2015, 06:56 AM
clinkasker clinkasker is offline
Registered User
clinkasker's PC Specs
 
Join Date: Oct 2014
Posts: 106
POST ID # = 814585
clinkasker Reputation: 10
Default

Quote:
Originally Posted by AterialDawn View Post
This is a Visualizer for Corsair RGB keyboards using the CUE-SDK C# Wrapper (http://forum.corsair.com/forums/showthread.php?t=149863) written by Darth Affe, and the Bass Library/Bass.net.

Using WASAPI (Vista+) I am able to grab currently playing sound, and write some neat visualizers for it. As soon as the SDK released I immediately thought of converting that project to a keyboard visualizer and I must say that it looks quite good!

Demo Video: https://www.youtube.com/watch?v=tgp8qTNGqg4

Github repo is : https://github.com/AterialDawn/CUEAudioVisualizer

Compiled binary is attached below.

A plugin system for adding more visualizers is pending, and any and all feedback is appreciated. The code is not final and probably will be changing a lot.

Credits go to Darth Affe for his incredibly handy CUE-SDK C# Wrapper, LegifyX for the Icon, and me for the incredibly hideous code.

Changelog:
v1.0.0 : First release

v1.0.1 : Settings are actually saved now! Whoops.
i decompiled it and have question: what is this?
"trial@trial.com", "2X1837515183722"
  #14  
Old 10-16-2015, 09:19 AM
Aazelion Aazelion is offline
Registered User
Aazelion's PC Specs
 
Join Date: Oct 2015
Posts: 3
POST ID # = 814611
Aazelion Reputation: 10
Default

Quote:
Originally Posted by EddieF430 View Post
How is the lag between the visualizer and when it shows up on the keyboard? Really anxious to finally DL something like this.
The lag is not noticeable at all, if there's any even

Quote:
Originally Posted by AterialDawn View Post
Ahh, okay, I can fix that. Gonna take me a few days cause i'm working on a few other things but I can definitely fix that!
That would be awesome, take your time since i don't think my problem is anything major

Quote:
Originally Posted by dbronx View Post
I seriously don't understand any of this. Any assistance? I just want to simply try it out and test it out. But I don't get half of what you guys are saying.... And I call my self a nerd -_-
You should have CUE running already for this to work as well as Microsoft .NET Framework 4.5 i believe
Download 1.0.1 then extract it on a folder or somewhere you can find it easily since it doesn't require installation, or make a shortcut on start menu even
Double right click CUEAudioVisualizer.exe on the folder you extracted (or shortcut)
Then go to the taskbar tray, left click CueAudioVisualizer icon and choose what device to listen to on Device selection, you can also change color and what not

That should be all

Last edited by Aazelion; 10-16-2015 at 09:22 AM.
  #15  
Old 10-17-2015, 05:56 PM
fenix840 fenix840 is offline
Registered User
fenix840's PC Specs
 
Join Date: Sep 2015
Posts: 14
POST ID # = 814890
fenix840 Reputation: 10
Default

I had been using this program for a few days. Just went ot start it and I'm getting this......any ideas?

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ApplicationException: Unable to initialize WASAPI device 15
at CUEAudioVisualizer.SoundDataProcessor.UpdateDevice() in c:\Users\AterialDawn\Documents\Visual Studio 2012\Projects\CUEAudioVisualizer\CUEAudioVisualizer\SoundDataProcessor.cs:line 78
at CUEAudioVisualizer.SoundDataProcessor.Process() in c:\Users\AterialDawn\Documents\Visual Studio 2012\Projects\CUEAudioVisualizer\CUEAudioVisualizer\SoundDataProcessor.cs:line 49
at CUEAudioVisualizer.KeyboardVisualizer.UpdateKeyboard() in c:\Users\AterialDawn\Documents\Visual Studio 2012\Projects\CUEAudioVisualizer\CUEAudioVisualizer\KeyboardVisualizer.cs:line 154
at CUEAudioVisualizer.mainForm.visUpdateTimer_Tick(Object sender, EventArgs e) in c:\Users\AterialDawn\Documents\Visual Studio 2012\Projects\CUEAudioVisualizer\CUEAudioVisualizer\mainForm.cs:line 82
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
CUEAudioVisualizer
Assembly Version: 1.0.1.0
Win32 Version: 1.0.1.0
CodeBase: file:///C:/Users/Chris/Downloads/CUEAudioVisualizer_v1.0.1/CUEAudioVisualizer.exe
----------------------------------------
Bass.Net
Assembly Version: 2.4.8.4
Win32 Version: 2.4.8.4
CodeBase: file:///C:/Users/Chris/Downloads/CUEAudioVisualizer_v1.0.1/Bass.Net.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CUE.NET4.0
Assembly Version: 0.1.0.0
Win32 Version: 0.1.0
CodeBase: file:///C:/Users/Chris/Downloads/CUEAudioVisualizer_v1.0.1/CUE.NET4.0.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 

Tags
k95 rgb, keyboard, music visualizer, sdk, visualizer

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:18 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.