Here's a very simple server that listens to MIDI events from this MIDI Server and forwards them to two of these lights.
It doesn't have any configuration. It listens to localhost:8000 and expects reacts to MIDI messages my Nord Electro sends. It triggers the brightness of my favorite color to two LIFX bulbs.
- Have a MIDI controller hooked up to a computer.
- Have a LIFX bulb or two on the same network as that computer.
- Run MIDI Server on that computer.
- Run this by typing
node server.js
on the same computer.
Your MIDI controller probably isn't the same as mine. Find the command number of a given knob. Turn the knob and watch the output from the MIDI Server. Change COMMAND to the number in server.js.
Feel free to fork this and change it to suit your needs.