summaryrefslogtreecommitdiffstats
path: root/src/midi.c
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2025-02-22 03:40:43 +0200
committergrm <grm@eyesin.space>2025-02-22 03:40:43 +0200
commit35208c579c9e7d0078d786e61f4a323919e2dcdf (patch)
tree022f464e6350c18f76443a6e96eccd02698df7d1 /src/midi.c
parent500b9a07b93d6cd3e771edc5698e06d163da60f1 (diff)
downloadsynth-project-35208c579c9e7d0078d786e61f4a323919e2dcdf.tar.gz
synth-project-35208c579c9e7d0078d786e61f4a323919e2dcdf.tar.bz2
synth-project-35208c579c9e7d0078d786e61f4a323919e2dcdf.zip
Small fixesHEADmaster
Diffstat (limited to 'src/midi.c')
-rw-r--r--src/midi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/midi.c b/src/midi.c
index 5a556e9..429e9df 100644
--- a/src/midi.c
+++ b/src/midi.c
@@ -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());