summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_midi.h
diff options
context:
space:
mode:
authorGabriel Young <gabeplaysdrums@live.com>2017-02-26 04:25:33 +0100
committerGabriel Young <gabeplaysdrums@live.com>2017-02-26 04:25:33 +0100
commit1000799d1ef594bf9f48076986ec300ef9e536db (patch)
treee561400e2a5f2e0c27238b1e2602164140039918 /quantum/process_keycode/process_midi.h
parent525be99ee938aa6e48448d7dd6ea6e6fe50bb36d (diff)
downloadqmk_firmware-1000799d1ef594bf9f48076986ec300ef9e536db.tar.gz
qmk_firmware-1000799d1ef594bf9f48076986ec300ef9e536db.tar.xz
Factor basic note processing into respective processors
Diffstat (limited to 'quantum/process_keycode/process_midi.h')
-rw-r--r--quantum/process_keycode/process_midi.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_midi.h b/quantum/process_keycode/process_midi.h
index ffd41579f..0f559ec23 100644
--- a/quantum/process_keycode/process_midi.h
+++ b/quantum/process_keycode/process_midi.h
@@ -2,8 +2,16 @@
#define PROCESS_MIDI_H
#include "quantum.h"
-#include "midi.h"
+#ifdef MIDI_ENABLE
+
+#ifdef MIDI_BASIC
+void process_midi_basic_noteon(uint8_t note);
+void process_midi_basic_noteoff(uint8_t note);
+void process_midi_basic_stop_all_notes(void);
+#endif
+
+#ifdef MIDI_ADVANCED
typedef union {
uint32_t raw;
struct {
@@ -25,5 +33,8 @@ bool process_midi(uint16_t keycode, keyrecord_t *record);
#define MIDI_TONE_COUNT (MIDI_TONE_MAX - MIDI_TONE_MIN + 1)
uint8_t midi_compute_note(uint16_t keycode);
+#endif // MIDI_ADVANCED
+
+#endif // MIDI_ENABLE
#endif \ No newline at end of file