For my Physical Computing and Max MSP finals, I made a controller that uses an ADXL 335 Accelerometer and an Arduino board that communicates serially with Max MSP. The Max MSP patch is a simple sequencer that allows for delay on all tracks.
The controller has inputs for 5 tracks, and the 6th button applies the delay affect on all tracks. Here are links to the Max MSP code (plus the abstraction) and the Arduino code. The buttons are connected to Digital Pins 2 through 6, and the LED’s are connected to Digital Pins 9 through 13. The acceleromter X axis is connected to Analog Pin 0, and the Y axis is connected to Analog Pin 1.
This is a video demonstration of the controller:
Here is a video of the controller in user testing:
A special thanks to Daniel Jolliffe for the code that provides Analog and Digital communication between the Arduino and Max MSP. Also, thanks to Joel Murphy (Phys Comp) and Rob Ramirez (Max MSP) for the assistance.