tjr@ihnet.UUCP (Tom Roberts) (10/17/85)
Regarding a context-free grammar describing the MIDI interface: While it might be useful in describing the interface, I seriously doubt it would be useful in implementing any MIDI equipment. By it nature, musical equipment using MIDI must respond quickly to incoming MIDI commands, and there probably aren't enough CPU cycles available to handle a grammatical parser. The "language" just isn't complicated enough to warrant it. A typical implementation would simply separate commands into pieces (channel #, opcode, etc.) and dispatch to operational routines based on the opcode. This will be faster and simpler than any yacc-based approach. Tom Roberts AT&T Bell Laboratories ihnp4!ihnet!tjr