I've just built most of a patch that translates data from a linear accelerometer into MIDI, the problem lies in making the MIDI data usable. Basically the y axis angle of the device (tilt) selects the note, the x axis selects the velocity and then a button on the device opens a gate to let the information into the makenote object. However, the resolution of the accelerometer part, ie, getting the data is high, so when the button is pressed, rather than playing a single note a repated note is played (obviously with this same note getting sent 25 times a second it doesn't sound too great). Is there a way of getting the button to trigger jstu one note? I've tried with the onenote object, and sending a '0' message to the gate at a higher rate than the data from the accelerometer is being analysed, but the '1' message triggered by the button on the device overrides this.
Anyone have any ideas?