[sdiy] MIDI bytestream parser

Neil Johnson neil.johnson97 at ntlworld.com
Tue Nov 16 21:08:12 CET 2010


Olivier,

> I think it's just shifting the channel number from 1-16 (what's
> exposed to the user) to 0-15 values (what's used internally by MIDI).
>
> The HASH( ) is used to implement a lookup map from status byte to
> handler function, by observing that there are no two status byte with
> the same nibble checksum (they are either nx, with n between 8 and E
> and x for channel messages, or Fn, with n below 8 for system messages.

Spot on!

Neil
--
http://www.njohnson.co.uk






More information about the Synth-diy mailing list