[sdiy] MIDI bytestream parser

Tom Wiltshire tom at electricdruid.net
Tue Nov 16 10:49:38 CET 2010


Very interesting, Neil. I've got one or two questions though;

What's all this 'real' and 'encoded' stuff? Is that what the hash is for? What are you up to?

When you do further documentation, I'd appreciate an overview of the general structure or form of the code. I often find people write a comment by each line telling you what that line does, and sometimes you get decent comments at the top of a function telling you what the function does (although how often have you seen stuff like "function bunny_boiler($rabbit) { /* This function boils $rabbit */ etcetc }"? - not a comment that adds anything useful.)
The point is that as well as the microscopic detail, documentation needs to give a macroscopic overview of the basic principles and structure.

T.



On 15 Nov 2010, at 23:37, Neil Johnson wrote:

> Hi all,
> 
> A long while back I mentioned a little side project I've been working on to write a general-purpose MIDI bytestream parser.  Well, the first initial version is now online for anyone to use.  Documentation is a little sketchy at the moment (!!!) but will improve.
> 
> See here:
> 
> http://code.google.com/p/miby/
> 
> Comments welcome!  It hasn't been used in anger yet, and I know there are opportunities for optimising it further (for example, if SysEx is not needed), but for now the target is correctness.
> 
> To come are parsers for the various SysEx Universals (sample dump, file dump, time code, machine control, etc).  Plus all the continuous controllers, including RPN and NRPN.
> 
> Cheers,
> Neil
> --
> http://www.njohnson.co.uk
> 
> 
> 
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at dropmix.xs4all.nl
> http://dropmix.xs4all.nl/mailman/listinfo/synth-diy




More information about the Synth-diy mailing list