midifile

view src/midi.h @ 1:abfe7b19079a

leftover changes from 10 years ago
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 17 Jun 2022 01:12:24 +0300
parents
children
line source
1 #ifndef MIDI_H_
2 #define MIDI_H_
4 #include <stdio.h>
6 struct midi;
7 struct midi_track;
8 struct midi_event;
10 #define MIDI_NOTE_OFF 8
11 #define MIDI_NOTE_ON 9
12 #define MIDI_NOTE_AFTERTOUCH 10
13 #define MIDI_CONTROLLER 11
14 #define MIDI_PROG_CHANGE 12
15 #define MIDI_CHAN_AFTERTOUCH 13
16 #define MIDI_PITCH_BEND 14
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
22 struct midi *load_midi(const char *fname);
23 void free_midi(struct midi *midi);
25 #ifdef __cplusplus
26 }
27 #endif
29 #endif /* MIDI_H_ */