This is a subset of the MIDI library taken from PSL, and modified by SAU.
Only those routines needed by sparcOmatic are included here
