summaryrefslogtreecommitdiff
path: root/floppyMusic/midi.h
diff options
context:
space:
mode:
Diffstat (limited to 'floppyMusic/midi.h')
-rw-r--r--floppyMusic/midi.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/floppyMusic/midi.h b/floppyMusic/midi.h
new file mode 100644
index 0000000..f30f1c4
--- /dev/null
+++ b/floppyMusic/midi.h
@@ -0,0 +1,34 @@
+/*
+ * midi.h
+ *
+ * Created: 12.06.2017 20:43:37
+ * Author: Jonas
+ */
+
+
+#ifndef MIDI_H_
+#define MIDI_H_
+
+#define _MIDI_SEND 0
+#define _MIDI_RECIEVE 1
+
+#include "uart.h"
+
+struct midi_command
+{
+ char command;
+ char channel;
+ char note;
+ char velocity;
+};
+
+
+void midi_setup();
+
+void midi_recieve(struct midi_command *_command);
+
+void midi_send(struct midi_command _command);
+
+
+
+#endif /* MIDI_H_ */ \ No newline at end of file