I've recently completed a LEGO drum sequencer that uses a Processing sketch to convert LEGO brick colours into MIDI notes for Ableton Live. You build music by placing 2x2 LEGO bricks on a plate. The plate is scanned using a LEGO Mindstorms NXT and four colour sensors, which then sends the colour data to the Processing sketch over USB. The sketch converts the colours to MIDI notes which is sends using SoundCipher to Ableton Live.