diff options
author | Gabriel Young <gabeplaysdrums@live.com> | 2017-02-25 15:02:43 -0800 |
---|---|---|
committer | Gabriel Young <gabeplaysdrums@live.com> | 2017-02-25 15:02:43 -0800 |
commit | 525be99ee938aa6e48448d7dd6ea6e6fe50bb36d (patch) | |
tree | 8842033e455e5a2546894d03b701ae8fe2f565a7 /quantum/quantum_keycodes.h | |
parent | 64eecfc5303788bd82bf2fb466ec4a6f1bd0c028 (diff) | |
download | qmk_firmware-525be99ee938aa6e48448d7dd6ea6e6fe50bb36d.tar.gz qmk_firmware-525be99ee938aa6e48448d7dd6ea6e6fe50bb36d.zip |
Split MIDI functionality into MIDI_BASIC and MIDI_ADVANCED
MIDI_ENABLE = no
text data bss dec hex filename
0 17080 0 17080 42b8 satan_midi.hex
MIDI_ENABLE = yes
MIDI_BASIC undefined
MIDI_ADVANCED undefined
text data bss dec hex filename
0 19494 0 19494 4c26 satan_midi.hex
MIDI_ENABLE = yes
#define MIDI_BASIC
MIDI_ADVANCED undefined
text data bss dec hex filename
0 19788 0 19788 4d4c satan_midi.hex
MIDI_ENABLE = yes
MIDI_BASIC undefined
#define MIDI_ADVANCED
text data bss dec hex filename
0 20846 0 20846 516e satan_midi.hex
MIDI_ENABLE = yes
#define MIDI_BASIC
#define MIDI_ADVANCED
text data bss dec hex filename
0 21140 0 21140 5294 satan_midi.hex
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r-- | quantum/quantum_keycodes.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index 6d1438051..3b82b7208 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #ifndef QUANTUM_KEYCODES_H | 2 | #ifndef QUANTUM_KEYCODES_H |
3 | #define QUANTUM_KEYCODES_H | 3 | #define QUANTUM_KEYCODES_H |
4 | 4 | ||
5 | #ifdef MIDI_ENABLE | 5 | #if defined(MIDI_ENABLE) && defined(MIDI_ADVANCED) |
6 | #ifndef MIDI_TONE_KEYCODE_OCTAVES | 6 | #ifndef MIDI_TONE_KEYCODE_OCTAVES |
7 | #define MIDI_TONE_KEYCODE_OCTAVES 3 | 7 | #define MIDI_TONE_KEYCODE_OCTAVES 3 |
8 | #endif | 8 | #endif |
@@ -116,6 +116,12 @@ enum quantum_keycodes { | |||
116 | #ifdef MIDI_ENABLE | 116 | #ifdef MIDI_ENABLE |
117 | // Midi | 117 | // Midi |
118 | 118 | ||
119 | #ifdef MIDI_BASIC | ||
120 | MI_ON, // send midi notes when music mode is enabled | ||
121 | MI_OFF, // don't send midi notes when music mode is enabled | ||
122 | #endif | ||
123 | |||
124 | #ifdef MIDI_ADVANCED | ||
119 | MIDI_TONE_MIN, | 125 | MIDI_TONE_MIN, |
120 | 126 | ||
121 | #if MIDI_TONE_KEYCODE_OCTAVES > 0 | 127 | #if MIDI_TONE_KEYCODE_OCTAVES > 0 |
@@ -321,7 +327,7 @@ enum quantum_keycodes { | |||
321 | MI_CHD, // previous channel | 327 | MI_CHD, // previous channel |
322 | MI_CHU, // next channel | 328 | MI_CHU, // next channel |
323 | 329 | ||
324 | MI_OFF, // all notes off | 330 | MI_ALLOFF, // all notes off |
325 | 331 | ||
326 | MI_SUS, // sustain | 332 | MI_SUS, // sustain |
327 | MI_PORT, // portamento | 333 | MI_PORT, // portamento |
@@ -332,7 +338,8 @@ enum quantum_keycodes { | |||
332 | MI_MOD, // modulation | 338 | MI_MOD, // modulation |
333 | MI_MODSD, // decrease modulation speed | 339 | MI_MODSD, // decrease modulation speed |
334 | MI_MODSU, // increase modulation speed | 340 | MI_MODSU, // increase modulation speed |
335 | #endif | 341 | #endif // MIDI_ADVANCED |
342 | #endif // MIDI_ENABLE | ||
336 | 343 | ||
337 | // Backlight functionality | 344 | // Backlight functionality |
338 | BL_0, | 345 | BL_0, |