]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Document size added by MIDI_ENABLE (~3800 bytes according to my experiments)
authorGabriel Young <gabeplaysdrums@live.com>
Mon, 20 Feb 2017 01:45:08 +0000 (17:45 -0800)
committerGabriel Young <gabeplaysdrums@live.com>
Mon, 20 Feb 2017 01:45:08 +0000 (17:45 -0800)
satan/keymaps/midi

MIDI_ENABLE = no

   text    data     bss     dec     hex filename
      0   17080       0   17080    42b8 satan_midi.hex

MIDI_ENABLE = yes
#define MIDI_TONE_KEYCODE_OCTAVES 3 // default

   text    data     bss     dec     hex filename
      0   20846       0   20846    516e satan_midi.hex

MIDI_ENABLE = yes
#define MIDI_TONE_KEYCODE_OCTAVES 2 // fewer octaves

   text    data     bss     dec     hex filename
      0   20846       0   20846    516e satan_midi.hex

keyboards/satan/keymaps/midi/Makefile
keyboards/satan/keymaps/midi/config.h
keyboards/satan/keymaps/midi/keymap.c
quantum/process_keycode/process_midi.c
quantum/template/config.h
quantum/template/keymaps/default/Makefile

index 5cbda96cee19f5febcc25b6d8f3925e821c39dfc..4e2d9d2f7cdd83363108d510445736f375b7fc4d 100644 (file)
@@ -9,7 +9,7 @@ CONSOLE_ENABLE = no         # Console for debug(+400)
 COMMAND_ENABLE = yes        # Commands for debug and configuration
 NKRO_ENABLE = yes           # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
 BACKLIGHT_ENABLE = yes       # Enable keyboard backlight functionality
-MIDI_ENABLE = yes            # MIDI controls
+MIDI_ENABLE = yes            # MIDI support (+3800)
 AUDIO_ENABLE = no           # Audio output on port C6
 UNICODE_ENABLE = no         # Unicode
 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
index e345d40c962b48c62d7826704291bb500ab9c973..0dbdb5cbcdffe56dd403ec3c79c4461b200dcd49 100644 (file)
@@ -5,7 +5,7 @@
 
 // place overrides here
 
-/* override number of MIDI tone keycodes (each octave adds 12 bytes) */
+/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
 #define MIDI_TONE_KEYCODE_OCTAVES 2
 
 #endif
\ No newline at end of file
index ac97259331e026acb9b4549ca5aaf32c4dda5a9e..004690f413d05439a70d44844251d519a2194a73 100644 (file)
@@ -32,6 +32,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
   KC_LSFT,         KC_Z,   KC_X,   KC_C,   KC_V,   KC_B,   KC_N,   KC_M,   KC_COMM,KC_DOT, KC_SLSH,         KC_RSFT, \
   KC_LCTL, KC_LGUI,KC_LALT,                KC_SPC,                                 KC_RALT,KC_RGUI, TG(_ML), KC_RCTL),
 
+#ifdef MIDI_ENABLE
 /* Keymap _ML: MIDI Layer
    * ,------------------------------------------------------------------------.
    * | Exit |    |    |    |    |    |    |    |    |    |    |    |    |     |
@@ -57,4 +58,5 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
   MI_MOD,  MI_C,    MI_D,    MI_E,    MI_F,    MI_G,    MI_A,    MI_B,    MI_C_1,  MI_D_1,  MI_E_1,  MI_F_1,           _______, \
   MI_SUS,  MI_OCTD, MI_OCTU, MI_MODSD, MI_MODSU, XXXXXXX, XXXXXXX, XXXXXXX, MI_TRNSD, MI_TRNSU, MI_TRNS_0,             MI_SUS, \
   _______, _______, _______,                          MI_OFF,                               _______, _______, _______, _______),
+#endif
 };
\ No newline at end of file
index 9190fa04718cbbfaa92e25558b673e44a19cb9b6..5530ea97c4cc19adab41c0ba205eacc6af2f7691 100644 (file)
@@ -1,3 +1,5 @@
+#define MIDI_TONE_KEYCODE_OCTAVES 2
+
 #include "process_midi.h"
 #include "timer.h"
 
index d0bee0d89a1d810d770cb1a32ed2f716d942574a..cd6dfa2c6a0c280bb343b0afd4282ebcf2aa78ce 100644 (file)
@@ -159,7 +159,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //#define NO_ACTION_MACRO
 //#define NO_ACTION_FUNCTION
 
-/* override number of MIDI tone keycodes (each octave adds 12 bytes) */
+/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
 //#define MIDI_TONE_KEYCODE_OCTAVES 1
 
 #endif
index f4671a9d113c3c7bc701ed60b733a83755eceb84..24442db37deac79c4306c702aa644d0730a0c1b2 100644 (file)
@@ -9,7 +9,7 @@ CONSOLE_ENABLE = no         # Console for debug(+400)
 COMMAND_ENABLE = yes        # Commands for debug and configuration
 NKRO_ENABLE = yes           # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
 BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
-MIDI_ENABLE = no            # MIDI controls
+MIDI_ENABLE = no            # MIDI support (+3800)
 AUDIO_ENABLE = no           # Audio output on port C6
 UNICODE_ENABLE = no         # Unicode
 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID