config.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #pragma once
  2. #define TAPPING_TERM 200
  3. /* #define MK_3_SPEED */
  4. #define MK_MOMENTARY_ACCEL
  5. #define MOUSEKEY_MAX_SPEED 8
  6. // Must raise 5 halftones
  7. /* #define CUSTOM_STARTUP \ */
  8. /* Q__NOTE(_FS7), \ */
  9. /* W__NOTE(_B7), */
  10. #undef MUSICAL_NOTE
  11. #define MUSICAL_NOTE(note, duration) {((NOTE##note) * 1.3348398541700344), duration}
  12. #define CUSTOM_STARTUP \
  13. QD_NOTE(_A6), \
  14. QD_NOTE(_C7), \
  15. QD_NOTE(_A7), \
  16. QD_NOTE(_F7), \
  17. QD_NOTE(_G7), \
  18. HD_NOTE(_C8),
  19. #undef MUSICAL_NOTE
  20. #define MUSICAL_NOTE(note, duration) {(NOTE##note), duration}
  21. #ifdef AUDIO_ENABLE
  22. #define STARTUP_SONG SONG(CUSTOM_STARTUP)
  23. // #define STARTUP_SONG SONG(NO_SOUND)
  24. #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
  25. SONG(COLEMAK_SOUND), \
  26. SONG(DVORAK_SOUND) \
  27. }
  28. #endif
  29. #define MUSIC_MASK (keycode != KC_NO)
  30. #define AUDIO_CLICKY
  31. #define AUDIO_CLICKY_FREQ_DEFAULT 440.f
  32. /*
  33. * MIDI options
  34. */
  35. /* Prevent use of disabled MIDI features in the keymap */
  36. //#define MIDI_ENABLE_STRICT 1
  37. /* enable basic MIDI features:
  38. - MIDI notes can be sent when in Music mode is on
  39. */
  40. #define MIDI_BASIC
  41. /* enable advanced MIDI features:
  42. - MIDI notes can be added to the keymap
  43. - Octave shift and transpose
  44. - Virtual sustain, portamento, and modulation wheel
  45. - etc.
  46. */
  47. //#define MIDI_ADVANCED
  48. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  49. //#define MIDI_TONE_KEYCODE_OCTAVES 2