diff options
Diffstat (limited to 'quantum/process_keycode/process_midi.h')
| -rw-r--r-- | quantum/process_keycode/process_midi.h | 13 |
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 | ||
| 9 | void process_midi_basic_noteon(uint8_t note); | ||
| 10 | void process_midi_basic_noteoff(uint8_t note); | ||
| 11 | void process_midi_basic_stop_all_notes(void); | ||
| 12 | #endif | ||
| 13 | |||
| 14 | #ifdef MIDI_ADVANCED | ||
| 7 | typedef union { | 15 | typedef 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 | ||
| 27 | uint8_t midi_compute_note(uint16_t keycode); | 35 | uint8_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 |
