summaryrefslogtreecommitdiffstats
path: root/quantum/quantum_keycodes.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-11-07 13:26:15 +1100
committerGitHub <noreply@github.com>2022-11-07 02:26:15 +0000
commit8b658dcc9a826b03fedb1ef2bfcc692f3e25da1b (patch)
treee8a4c156505d5e81046145d9dcffb60b0797253f /quantum/quantum_keycodes.h
parent442e7653cc833e95a84178dedafb4034738c52a1 (diff)
Normalise MIDI keycodes (#18972)
* `MI_ON`, `MI_OFF`, `MI_TOG` -> `MI_TOGG` * `MI_CH*`, `MI_CHU` -> `MI_CHNU`, `MI_CHD` -> `MI_CHND` * `MI_VEL_*` -> `MI_VL*`, `MI_VELU`, `MI_VELD` * `MI_TRNS_*` -> `MI_TR*`, `MI_TRNSU` -> `MI_TRSU`, `MI_TRNSD` -> `MI_TRSD` * `MI_OCT_*` -> `MI_OC*`, `MI_OCTU`, `MI_OCTD` * Misc controls * Note keycodes * Add legacy keycodes * Regenerate keycodes * Typo
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r--quantum/quantum_keycodes.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index 6b0e890792..688fb892eb 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -193,16 +193,16 @@
#define QK_SWAP_HANDS_GET_TAP_KEYCODE(kc) ((kc)&0xFF)
// MIDI aliases
-#define MIDI_TONE_MIN MI_C
-#define MIDI_TONE_MAX MI_B_5
-#define MIDI_OCTAVE_MIN MI_OCT_N2
-#define MIDI_OCTAVE_MAX MI_OCT_7
-#define MIDI_TRANSPOSE_MIN MI_TRNS_N6
-#define MIDI_TRANSPOSE_MAX MI_TRNS_6
-#define MIDI_VELOCITY_MIN MI_VEL_0
-#define MIDI_VELOCITY_MAX MI_VEL_10
-#define MIDI_CHANNEL_MIN MI_CH1
-#define MIDI_CHANNEL_MAX MI_CH16
+#define MIDI_TONE_MIN QK_MIDI_NOTE_C_0
+#define MIDI_TONE_MAX QK_MIDI_NOTE_B_5
+#define MIDI_OCTAVE_MIN QK_MIDI_OCTAVE_N2
+#define MIDI_OCTAVE_MAX QK_MIDI_OCTAVE_7
+#define MIDI_TRANSPOSE_MIN QK_MIDI_TRANSPOSE_N6
+#define MIDI_TRANSPOSE_MAX QK_MIDI_TRANSPOSE_6
+#define MIDI_VELOCITY_MIN QK_MIDI_VELOCITY_0
+#define MIDI_VELOCITY_MAX QK_MIDI_VELOCITY_10
+#define MIDI_CHANNEL_MIN QK_MIDI_CHANNEL_1
+#define MIDI_CHANNEL_MAX QK_MIDI_CHANNEL_16
// TODO: somehow migrate sequencer to DD?
#include "sequencer.h"