[sdiy] MIDI bytestream parser
Neil Johnson
neil.johnson97 at ntlworld.com
Wed Nov 17 09:08:48 CET 2010
Hi Jason,
> another option might be a jumptable off (((byte - 0x80) >> 4) -
> 0x8), with a further jumptable for the selector off 0xf0.
>
> first jumptable has 8 entries, the second has 16.
Well, yes you could, but that's more code and more processing, when
you can do it with a single jumptable. Note that the system realtime
messages are treated separately to minimise the processing time.
> makes me less nervous than a hashtable, and faster too :-)
Are you sure?
Neil
--
http://www.njohnson.co.uk
More information about the Synth-diy
mailing list