I have been working on a project that reads accelerometer data and outputs midi for controlling a synth. It is constantly polling the accelerometer and sending out control change messages.
I map the data from the accelerometer into the 0-127 value that midi needs.
Post back if you want to hear more!
-Miles