This one takes a while to load as there's about 6MB of data with all the mp3 files and what not. After it does load, click on the java frame to make sure it is in focus and then explore the space!
Source code: FP_mp3
Built with Processing
To control the lights we used a PWM8X serial board from NCD. This was an 8 channel pulse width modulation unit that allowed each light to be controlled individually to 256 levels of intensity. It also works for dc motors and can handle some pretty decent juice flowing through it.
The motion tracking was the result of some sample code provided by Daniel Shiffman and a modified webcam that I gutted to make it only sensitive to IR light. If you want to ‘ruin’ your $50 webcam too, you can check out this page. We then stuck an IR LED on the top of the headphones, and voila...cheap and dirty motion tracking.
Here’s the source code for the program that actually interfaced with all this stuff. I’ve got to put the proviso on that my code usually exists in a quasi-rube-goldberg state as this code is a fine example of. At this stage in my life I didn’t know the difference between global and local variables...the fun things you learn while teaching yourself programming!