typedef unsigned char uchar; typedef unsigned int ui; ui lcm(ui, ui); typedef struct axz{int start; unsigned short dur; char chan; uchar trk; union { struct{uchar freq; char loud; uchar quit;} n; uchar prog; short pitch; struct{uchar * odp; short cc; uchar subtype;} opaque; } o; struct axz * next;} note; typedef struct {char type; uchar trks; int den;} BP; typedef void reg(note); typedef void seeNote(note); void Write(char *, note *, BP *); note* Read(char *, BP*); void ex(int); void scan(seeNote, note*, int); void aug(note, note**); void Free(note**); void ex(int); #define ProgramChange 0xffff #define PitchWheel 0xfffe #define OpaqueStuff 0xfffd #define maxdur 0xfffc