From c161e1016a04566a56b4858ea43502fed88dcc7f Mon Sep 17 00:00:00 2001 From: gramanas Date: Thu, 20 Apr 2023 18:24:49 +0300 Subject: Add midi --- src/midi.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/midi.h (limited to 'src/midi.h') 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 +#include + +#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 */ -- cgit v1.2.3