config.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /* enable basic MIDI features:
  36. - MIDI notes can be sent when in Music mode is on
  37. */
  38. #define MIDI_BASIC
  39. /* enable advanced MIDI features:
  40. - MIDI notes can be added to the keymap
  41. - Octave shift and transpose
  42. - Virtual sustain, portamento, and modulation wheel
  43. - etc.
  44. */
  45. //#define MIDI_ADVANCED
  46. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  47. //#define MIDI_TONE_KEYCODE_OCTAVES 2