midifile
diff src/midi.h @ 0:3658e56b3a8a
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 26 Jan 2012 00:31:39 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/midi.h Thu Jan 26 00:31:39 2012 +0200 1.3 @@ -0,0 +1,29 @@ 1.4 +#ifndef MIDI_H_ 1.5 +#define MIDI_H_ 1.6 + 1.7 +#include <stdio.h> 1.8 + 1.9 +struct midi; 1.10 +struct midi_track; 1.11 +struct midi_event; 1.12 + 1.13 +#define MIDI_NOTE_OFF 8 1.14 +#define MIDI_NOTE_ON 9 1.15 +#define MIDI_NOTE_AFTERTOUCH 10 1.16 +#define MIDI_CONTROLLER 11 1.17 +#define MIDI_PROG_CHANGE 12 1.18 +#define MIDI_CHAN_AFTERTOUCH 13 1.19 +#define MIDI_PITCH_BEND 14 1.20 + 1.21 +#ifdef __cplusplus 1.22 +extern "C" { 1.23 +#endif 1.24 + 1.25 +struct midi *load_midi(const char *fname); 1.26 +void free_midi(struct midi *midi); 1.27 + 1.28 +#ifdef __cplusplus 1.29 +} 1.30 +#endif 1.31 + 1.32 +#endif /* MIDI_H_ */