diff options
Diffstat (limited to 'src/midi.h')
-rw-r--r-- | src/midi.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/midi.h b/src/midi.h new file mode 100644 index 0000000..fd9b749 --- /dev/null +++ b/src/midi.h @@ -0,0 +1,17 @@ +#ifndef MIDI_H +#define MIDI_H + +#include <portmidi.h> +#include <porttime.h> + +#include "synth_engine.h" + +typedef struct midi_t { + PortMidiStream * stream; + synth_t * synth; +} midi_t; + +void init_midi(midi_t *midi, synth_t *synth); +void terminate_midi(midi_t *midi); + +#endif /* MIDI_H */ |