midi.h (738B)
1 enum { 2 NOTE_OFF = 0x80, 3 NOTE_ON = 0x90, 4 KEY_PRESSURE = 0xa0, 5 CTL_CHANGE = 0xb0, 6 PROG_CHANGE = 0xc0, 7 CHAN_PRESSURE = 0xd0, 8 PITCH_WHEEL = 0xe0, 9 SYS_MESSAGE = 0xf0, 10 11 CIN_Misc = 0x0, 12 CIN_Cable = 0x1, 13 CIN_2Sys = 0x2, 14 CIN_3Sys = 0x3, 15 CIN_SysEx = 0x4, 16 CIN_1Sys = 0x5, 17 CIN_2SysEx = 0x6, 18 CIN_3SysEx = 0x7, 19 CIN_NoteOff = 0x8, 20 CIN_NoteOn = 0x9, 21 CIN_Poly = 0xA, 22 CIN_Ctl = 0xB, 23 CIN_Prog = 0xC, 24 CIN_Press = 0xD, 25 CIN_Bend = 0xE, 26 CIN_Byte = 0xF, 27 }; 28 29 typedef struct MidiMes MidiMes; 30 31 struct MidiMes { 32 int cn; /* Cable Number */ 33 int cin; /* Code Index Number */ 34 int status; 35 int channel; 36 int param[2]; 37 }; 38 39 char * midifill(MidiMes *, char *, int); 40 void midinoteon(char *, int, int, int); 41 void midinoteoff(char *, int, int, int);