aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_midi.h
diff options
context:
space:
mode:
authorGabriel Young <gabeplaysdrums@live.com>2017-02-25 19:25:33 -0800
committerGabriel Young <gabeplaysdrums@live.com>2017-02-25 19:25:33 -0800
commit1000799d1ef594bf9f48076986ec300ef9e536db (patch)
treee561400e2a5f2e0c27238b1e2602164140039918 /quantum/process_keycode/process_midi.h
parent525be99ee938aa6e48448d7dd6ea6e6fe50bb36d (diff)
downloadqmk_firmware-1000799d1ef594bf9f48076986ec300ef9e536db.tar.gz
qmk_firmware-1000799d1ef594bf9f48076986ec300ef9e536db.zip
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 @@
2#define PROCESS_MIDI_H 2#define PROCESS_MIDI_H
3 3
4#include "quantum.h" 4#include "quantum.h"
5#include "midi.h"
6 5
6#ifdef MIDI_ENABLE
7
8#ifdef MIDI_BASIC
9void process_midi_basic_noteon(uint8_t note);
10void process_midi_basic_noteoff(uint8_t note);
11void process_midi_basic_stop_all_notes(void);
12#endif
13
14#ifdef MIDI_ADVANCED
7typedef union { 15typedef union {
8 uint32_t raw; 16 uint32_t raw;
9 struct { 17 struct {
@@ -25,5 +33,8 @@ bool process_midi(uint16_t keycode, keyrecord_t *record);
25#define MIDI_TONE_COUNT (MIDI_TONE_MAX - MIDI_TONE_MIN + 1) 33#define MIDI_TONE_COUNT (MIDI_TONE_MAX - MIDI_TONE_MIN + 1)
26 34
27uint8_t midi_compute_note(uint16_t keycode); 35uint8_t midi_compute_note(uint16_t keycode);
36#endif // MIDI_ADVANCED
37
38#endif // MIDI_ENABLE
28 39
29#endif \ No newline at end of file 40#endif \ No newline at end of file