diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2023-04-20 18:24:49 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2023-04-20 18:24:49 +0300 |
commit | c161e1016a04566a56b4858ea43502fed88dcc7f (patch) | |
tree | b4b3086f000df6b63229dae6057f1aa253811b30 /src/midi.h | |
parent | 1e374b426b4182c7b73b35219aadaca267b9623c (diff) | |
download | synth-project-c161e1016a04566a56b4858ea43502fed88dcc7f.tar.gz synth-project-c161e1016a04566a56b4858ea43502fed88dcc7f.tar.bz2 synth-project-c161e1016a04566a56b4858ea43502fed88dcc7f.zip |
Add midi
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 */ |