aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_midi.h
diff options
context:
space:
mode:
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