Midi Controlled Lighting

Discuss music production with Ableton Live.
Post Reply
AustinThumper
Posts: 110
Joined: Sat Feb 02, 2013 2:59 am

Midi Controlled Lighting

Post by AustinThumper » Wed Apr 24, 2013 5:08 am

Hey fellows,

I've been geeking out with individually addressable rgb LED strips and Arduino. Actually not Arduino but Teensy, which has a huge advantage in the USB MIDI realm because it is class-compliant and works with everything...

Hardware wise, what is involved is - the led strip (http://adafruit.com/products/1138 ), a teensy 3.0 (http://www.pjrc.com/store/teensy3.html ), a micro usb cable and a 2 amp usb charger (cheap ipad charger would work). I put my strip in a cheap rice paper vertical lamp but there's 42 other possibilities. ;-)

I set up the firmware so that the r,g and b channels map to midi chans 1-3. Midi Note on value (note number, not velocity, which is unused in this instance) determines the brightness for that channel (rgb) because using a m4l device that maps amplitude to note num. (With a device that maps ampl to CC val, (which seems optimal to me) the firmware would need to respond to ccs..)

I then use ableton L9 to process audio and feed midi to the strip, making today what was once called a "color organ". Ahem.

Processing of each led color channel (r,g and b) involves a EQ3 (Low = red, mid = g, hi = blue) driving an M4L envelope follower, which controls a Jazz ME device, sending midi to an external Midi "Teensy" instrument, set for channel 1 for red, 2 = green, 3 blue.

If anybody's eyes havent glazed over by now (!tl;dr), I'm happy to share (or even make a howto..) my code and the very simple circuit setup for making it work.

I'm working on uploading a short vid I've made.. Standby for that.

edit - hopefully this link to this google+ vid will work...

https://plus.google.com/photos/11768221 ... jOuPyKqtLQ



Cheerios.
Live 9.6 Suite / Max 7.2 / REAPER / Reaktor 6 / Win10 64bit / 4.2GHz i7 / 32GB DRAM / SSD / 828mk3 / 4 x HR824 / QX25 / HPD-15 / Sonor club kit / Mother-32 and a growing Eurorack.

Z3NO
Posts: 246
Joined: Mon Oct 26, 2009 6:12 am
Location: 404 Not Found

Re: Midi Controlled Lighting

Post by Z3NO » Wed Apr 24, 2013 10:13 pm

Excellent work.
I would definitely be interested in the How-to and code. Would you be able to use DMX instead of midi?

dsu
Posts: 141
Joined: Thu Sep 02, 2010 4:22 pm
Contact:

Re: Midi Controlled Lighting

Post by dsu » Wed Apr 24, 2013 10:21 pm

That's cool

tecgen
Posts: 46
Joined: Wed Mar 03, 2010 4:14 pm
Location: Germany
Contact:

Re: Midi Controlled Lighting

Post by tecgen » Thu Apr 25, 2013 7:49 am

Very cool! I've got a AT90USBKEY, which is, as far as I know, very similar to the Tennsy board. Do you plan to release the source code?

AustinThumper
Posts: 110
Joined: Sat Feb 02, 2013 2:59 am

Re: Midi Controlled Lighting

Post by AustinThumper » Thu Apr 25, 2013 12:22 pm

PM me with your email address and I'll send it to you. It's written for the arduino IDE, so there's no low-level processor initialization, etc, included in my code. Currently running on a Teensy 3.0 but it will run on a Teensy 2.0 as well.
Live 9.6 Suite / Max 7.2 / REAPER / Reaktor 6 / Win10 64bit / 4.2GHz i7 / 32GB DRAM / SSD / 828mk3 / 4 x HR824 / QX25 / HPD-15 / Sonor club kit / Mother-32 and a growing Eurorack.

Post Reply