Neurogami has posted an article up on Instructables: Scripting Processing with MIDI.
It walks you through creating a Processing sketch that listens for MIDI messages and alters behavior based on note value and message source.
You can see a video of the results used for the track A Temporary Lattice .
Source code and article text, plus the Renoise track used for the song, is up on Github.