[sdiy] Tips for writing a MIDI parser wanted
johnspeth at yahoo.com
johnspeth at yahoo.com
Tue Mar 24 15:35:42 CET 2009
> What do you think? Am I on the right track? Anything I need to know? Anything
> I'm forgetting?
I think the advice you've gotten from everyone has been good advice. Here's my 2 cents: In my opinion, MIDI parsing begs to be treated with a state machine coding approach. Taking into account all that you can research about MIDI and paying particular attention to the pitfalls described in the other responses, I suggest you draw a state machine of all MIDI incoming byes and how they shall be parsed. It will be a good model that you can code from.
I'm an embedded SW engineer and have been saved from buggy spaghetti code many times by starting with with good written state machine models. For me, drawing state machines is a many-times-through iterative process but the code that results has always been worth the effort.
JJS
More information about the Synth-diy
mailing list