diff options
Diffstat (limited to 'quantum/quantum_keycodes.h')
| -rw-r--r-- | quantum/quantum_keycodes.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index 3b82b7208..56228f276 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
| @@ -1,8 +1,11 @@ | |||
| 1 | |||
| 2 | #ifndef QUANTUM_KEYCODES_H | 1 | #ifndef QUANTUM_KEYCODES_H |
| 3 | #define QUANTUM_KEYCODES_H | 2 | #define QUANTUM_KEYCODES_H |
| 4 | 3 | ||
| 5 | #if defined(MIDI_ENABLE) && defined(MIDI_ADVANCED) | 4 | #ifndef MIDI_ENABLE_STRICT |
| 5 | #define MIDI_ENABLE_STRICT 0 | ||
| 6 | #endif | ||
| 7 | |||
| 8 | #if !MIDI_ENABLE_STRICT || (defined(MIDI_ENABLE) && defined(MIDI_ADVANCED)) | ||
| 6 | #ifndef MIDI_TONE_KEYCODE_OCTAVES | 9 | #ifndef MIDI_TONE_KEYCODE_OCTAVES |
| 7 | #define MIDI_TONE_KEYCODE_OCTAVES 3 | 10 | #define MIDI_TONE_KEYCODE_OCTAVES 3 |
| 8 | #endif | 11 | #endif |
| @@ -113,18 +116,16 @@ enum quantum_keycodes { | |||
| 113 | MUV_IN, | 116 | MUV_IN, |
| 114 | MUV_DE, | 117 | MUV_DE, |
| 115 | 118 | ||
| 116 | #ifdef MIDI_ENABLE | ||
| 117 | // Midi | 119 | // Midi |
| 118 | 120 | #if !MIDI_ENABLE_STRICT || (defined(MIDI_ENABLE) && defined(MIDI_BASIC)) | |
| 119 | #ifdef MIDI_BASIC | ||
| 120 | MI_ON, // send midi notes when music mode is enabled | 121 | MI_ON, // send midi notes when music mode is enabled |
| 121 | MI_OFF, // don't send midi notes when music mode is enabled | 122 | MI_OFF, // don't send midi notes when music mode is enabled |
| 122 | #endif | 123 | #endif |
| 123 | 124 | ||
| 124 | #ifdef MIDI_ADVANCED | 125 | #if !MIDI_ENABLE_STRICT || (defined(MIDI_ENABLE) && defined(MIDI_ADVANCED)) |
| 125 | MIDI_TONE_MIN, | 126 | MIDI_TONE_MIN, |
| 126 | 127 | ||
| 127 | #if MIDI_TONE_KEYCODE_OCTAVES > 0 | 128 | #if !MIDI_ENABLE_STRICT || MIDI_TONE_KEYCODE_OCTAVES > 0 |
| 128 | MI_C = MIDI_TONE_MIN, | 129 | MI_C = MIDI_TONE_MIN, |
| 129 | MI_Cs, | 130 | MI_Cs, |
| 130 | MI_Db = MI_Cs, | 131 | MI_Db = MI_Cs, |
| @@ -144,7 +145,7 @@ enum quantum_keycodes { | |||
| 144 | MI_B, | 145 | MI_B, |
| 145 | #endif | 146 | #endif |
| 146 | 147 | ||
| 147 | #if MIDI_TONE_KEYCODE_OCTAVES > 1 | 148 | #if !MIDI_ENABLE_STRICT || MIDI_TONE_KEYCODE_OCTAVES > 1 |
| 148 | MI_C_1, | 149 | MI_C_1, |
| 149 | MI_Cs_1, | 150 | MI_Cs_1, |
| 150 | MI_Db_1 = MI_Cs_1, | 151 | MI_Db_1 = MI_Cs_1, |
| @@ -164,7 +165,7 @@ enum quantum_keycodes { | |||
| 164 | MI_B_1, | 165 | MI_B_1, |
| 165 | #endif | 166 | #endif |
| 166 | 167 | ||
| 167 | #if MIDI_TONE_KEYCODE_OCTAVES > 2 | 168 | #if !MIDI_ENABLE_STRICT || MIDI_TONE_KEYCODE_OCTAVES > 2 |
| 168 | MI_C_2, | 169 | MI_C_2, |
| 169 | MI_Cs_2, | 170 | MI_Cs_2, |
| 170 | MI_Db_2 = MI_Cs_2, | 171 | MI_Db_2 = MI_Cs_2, |
| @@ -184,7 +185,7 @@ enum quantum_keycodes { | |||
| 184 | MI_B_2, | 185 | MI_B_2, |
| 185 | #endif | 186 | #endif |
| 186 | 187 | ||
| 187 | #if MIDI_TONE_KEYCODE_OCTAVES > 3 | 188 | #if !MIDI_ENABLE_STRICT || MIDI_TONE_KEYCODE_OCTAVES > 3 |
| 188 | MI_C_3, | 189 | MI_C_3, |
| 189 | MI_Cs_3, | 190 | MI_Cs_3, |
| 190 | MI_Db_3 = MI_Cs_3, | 191 | MI_Db_3 = MI_Cs_3, |
| @@ -204,7 +205,7 @@ enum quantum_keycodes { | |||
| 204 | MI_B_3, | 205 | MI_B_3, |
| 205 | #endif | 206 | #endif |
| 206 | 207 | ||
| 207 | #if MIDI_TONE_KEYCODE_OCTAVES > 4 | 208 | #if !MIDI_ENABLE_STRICT || MIDI_TONE_KEYCODE_OCTAVES > 4 |
| 208 | MI_C_4, | 209 | MI_C_4, |
| 209 | MI_Cs_4, | 210 | MI_Cs_4, |
| 210 | MI_Db_4 = MI_Cs_4, | 211 | MI_Db_4 = MI_Cs_4, |
| @@ -224,7 +225,7 @@ enum quantum_keycodes { | |||
| 224 | MI_B_4, | 225 | MI_B_4, |
| 225 | #endif | 226 | #endif |
| 226 | 227 | ||
| 227 | #if MIDI_TONE_KEYCODE_OCTAVES > 5 | 228 | #if !MIDI_ENABLE_STRICT || MIDI_TONE_KEYCODE_OCTAVES > 5 |
| 228 | MI_C_5, | 229 | MI_C_5, |
| 229 | MI_Cs_5, | 230 | MI_Cs_5, |
| 230 | MI_Db_5 = MI_Cs_5, | 231 | MI_Db_5 = MI_Cs_5, |
| @@ -244,7 +245,7 @@ enum quantum_keycodes { | |||
| 244 | MI_B_5, | 245 | MI_B_5, |
| 245 | #endif | 246 | #endif |
| 246 | 247 | ||
| 247 | #if MIDI_TONE_KEYCODE_OCTAVES > 5 | 248 | #if !MIDI_ENABLE_STRICT || MIDI_TONE_KEYCODE_OCTAVES > 5 |
| 248 | MIDI_TONE_MAX = MI_B_5, | 249 | MIDI_TONE_MAX = MI_B_5, |
| 249 | #elif MIDI_TONE_KEYCODE_OCTAVES > 4 | 250 | #elif MIDI_TONE_KEYCODE_OCTAVES > 4 |
| 250 | MIDI_TONE_MAX = MI_B_4, | 251 | MIDI_TONE_MAX = MI_B_4, |
| @@ -339,7 +340,6 @@ enum quantum_keycodes { | |||
| 339 | MI_MODSD, // decrease modulation speed | 340 | MI_MODSD, // decrease modulation speed |
| 340 | MI_MODSU, // increase modulation speed | 341 | MI_MODSU, // increase modulation speed |
| 341 | #endif // MIDI_ADVANCED | 342 | #endif // MIDI_ADVANCED |
| 342 | #endif // MIDI_ENABLE | ||
| 343 | 343 | ||
| 344 | // Backlight functionality | 344 | // Backlight functionality |
| 345 | BL_0, | 345 | BL_0, |
