Show and telling my ikea smart bulbs triggered by the midi out of the organelle

Hey!

Just wanted to show and tell this thing iv been working on. Wrote a ORAC module to pipe MIDI messages to a python server that can control the smart bulbs in my living room.

Demo 1

Demo 2 - You can see the room a bit better on this

Here’s the code in case anyone would be interested in it.

The PD patch is an ORAC module. Go easy on me its my first PD program. Page 1 is where you input the IP address of your host machine. The PD program sends this IP MIDI messages in the form of “noteIn ”. In Page 2 there’s a knob that sends the connect command to netsend , turn it and it will connect or disconnect. The port number is currently hardcoded 9999.

The module will forward the midi messages it gets to the next module in the chain.

You may want to hard code your IP address in module.json so you wont have to re enter it every time in the GUI.

NetMIDI.zip (2.9 KB)

Here’s the python server code. its not the greatest, i’v mostly been doing quick and dirty solutions to test the bulbs.

midi_ambient_envelope.py (7.2 KB)

midi_ambient_round_robin.py (5.7 KB)

orac_server.py (3.2 KB)

netmidi_server.py contains the class that listens for the midi messages that the pd patch sends. can be run as a standalone but was meant to be used thru another program that would then react to the midi messages. midi_ambient_envelope.py and midi_ambient_round_robin.py do just that. use them as reference.

been fun. the IKEA Kajplats bulbs are deff not built for this kind of workload. but for an ambient, soft, slow thing they work.

I’m open for ideas, especially on how to translate what’s playing (note / chord / some other parameter) to color. In these videos I change the hue based on pitch, but not by a lot from one note to the next.

3 Likes