[sdiy] Tips for writing a MIDI parser wanted
Richard Wentk
richard at skydancer.com
Tue Mar 24 15:58:31 CET 2009
On 24 Mar 2009, at 10:47, Tom Wiltshire wrote:
> What do you think? Am I on the right track? Anything I need to
> know? Anything I'm forgetting?
Other people have mentioned running status. I've found it useful to
run the parser as a finite state machine - each status byte switches
parsing modes until the next status byte, with a standard set of
exceptions for sys real time, sys ex, etc.
Also, don't forget to include a hardware all-notes-off panic button. ;)
Active sensing can be useful too - run a timer, and turn all notes
off if active sensing isn't received within a time out period.
Richard
More information about the Synth-diy
mailing list