I decided to make use of the MIDI Fighter 3D midi controller with built in accelerometer to control the lighting system in the Media Lab. The Fighter is being utilized as a drum machine which has kick, snare, hi-hats, crash, and a series of bass notes. The accelerometer channels control the lights as well as some digital effects on the drum machine, including distortion and reverb. When sent MIDI notes on the correct channel, the MIDI Fighter lights up on the appropriate button with color dependent on the velocity of the note. I used Ableton Live to send these MIDI messages, as well as play the samples for the drum machine. To get control and MIDI messages into Max, I used ctlin and notein objects. When tilted left or right, the MIDI Fighter as well as the overhead lights turn red based on how far the device is tilted. The same is true for forwards and backwards, but blue instead of red. The snare drum triggers a flash from the UV LEDs, and the bass notes trigger a green flash.
I had trouble screen capturing audio and video at the same time, so here is a short audio example of a drumbeat I played on the MIDI Fighter.
And here is a video of what the patch looks like, with added pwindows to imagine howthe lights in the media lab would react.
<pre><code> ———-begin_max5_patcher———- 4506.3oc6csriiiirccVeEBFyxrM3SQpKPCz2Yyr4d2L6FTXPBk1pxRUKKYX K2U0yf4eenHkrEsknBaKY6rRVM5z1TuXbXvfA4ITv+8mdZ1qE+HY6rf+mfOG 7zS+6O8zS5hpJ3o5e+zrUw+XQV7V8oMKO46Eu9sYOaNTYxOJ0EWF7ZSYqiKW 70z72dYSxhRysliIyQOGPYxpOHL8eUEE7Oqulzk56h5N+KjvlaTwtxrjxx+b ch4tL60372ls+Z1V9mY5iLq4Bx2sJMWcI5ZJ9PglajozpB+Oe5SU+4Yfh72R Kmu96o4KK9tCYjhhpDKFQn+fKlSU+SvdN.SEcKp7dkzYOq9+8WB.4hbAxUOM kqi+8fsIkwYYAHy+4pkMj2pkEivtZZo8KuczptL4Kw6xJ6rwkOZMt8.BUs4q hK2j9ifeaY5p.b.F.JH0Z1XLxEJf6EETOzWLOT61+KRS+hzH1s50jMtTxCM8 fCMJ4Rmxovo5scm40wahWkTlr4kj73WMRK5rTIl79EYo4I.fFJUqJD5DZh.1 yGlnSGMQeUx1swukbhrS37mUVBvbDZXH.Go+P31LOYzLFPlZiAYEwK0pq8K5 LrtAm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