[sdiy] Tips for writing a MIDI parser wanted
Neil Johnson
neil.johnson97 at ntlworld.com
Tue Mar 24 23:58:22 CET 2009
ASSI wrote:
> On Dienstag, 24. März 2009, Tom Wiltshire wrote:
> [...]
>> What do you think? Am I on the right track? Anything I need to
>> know? Anything I'm forgetting?
>
> As much as you would wish, there is no shortcut to MIDI parsing
There is a grammar of sorts for MIDI on the net:
http://www.josef-k.net/mim/midibnf.html
But this is written for transmission, and would need significant
tweaking to be useable in a receiver, partly to make up for omissions
in what are valid receive bytes (e.g. sysex termination), and partly
to make it more robust against corrupted or missing bytes.
But its a start.
Neil
--
http://www.njohnson.co.uk
More information about the Synth-diy
mailing list