Light Controller using MIDI Keyboard

So I’ve had this midi keyboard in my room for like months with the intention of learning to play. That has gained minimal momentum so I instead decided to harness it for the Hue Lights I have.

This scope of this was to get a functional controller for my lights using the keyboard. The results are (in my mind) pretty cool. Here is a video demo:

———————

Features:

Modify H/S/V using wheels, globally or individually

Change color of all lights via keys

Turn lights on/off

———————

This was all written in python 2.7. I used PyGame to pull MIDI inputs and Phue to write out HSV data. All code can be found here — expect the code to get much cleaner in the future.

Advertisements

3 thoughts on “Light Controller using MIDI Keyboard

  1. haha this is awesome, i just got the hue lights and made it work with the home assistant, next step is to add the piano to the picture, thanks for implementation ideas!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s