diff options
author | grm <grm@eyesin.space> | 2025-02-22 03:40:43 +0200 |
---|---|---|
committer | grm <grm@eyesin.space> | 2025-02-22 03:40:43 +0200 |
commit | 35208c579c9e7d0078d786e61f4a323919e2dcdf (patch) | |
tree | 022f464e6350c18f76443a6e96eccd02698df7d1 /src/midi.c | |
parent | 500b9a07b93d6cd3e771edc5698e06d163da60f1 (diff) | |
download | synth-project-35208c579c9e7d0078d786e61f4a323919e2dcdf.tar.gz synth-project-35208c579c9e7d0078d786e61f4a323919e2dcdf.tar.bz2 synth-project-35208c579c9e7d0078d786e61f4a323919e2dcdf.zip |
Diffstat (limited to 'src/midi.c')
-rw-r--r-- | src/midi.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2,6 +2,8 @@ #include "notes.h" #include "control.h" +#include <stdio.h> +#include <stdlib.h> #include <string.h> void midi_decode(uint32_t msg, synth_t * synth) { @@ -146,7 +148,7 @@ midiCallback(PtTimestamp timestamp, void *userData) { //printf("%d\n", buf.message); midi_decode(buf.message, m->synth); - + } void @@ -154,7 +156,7 @@ init_midi(midi_t *m, synth_t *synth) { m->stream = NULL; m->synth = synth; - + Pm_Initialize(); printf("midi devs: %d\n", Pm_CountDevices()); |