summaryrefslogtreecommitdiffstats
path: root/quantum/keymap_common.c
diff options
context:
space:
mode:
authorIBNobody <ibnobody@gmail.com>2016-04-17 21:16:03 +0200
committerIBNobody <ibnobody@gmail.com>2016-04-17 21:16:03 +0200
commit23231fa577f7c6c585124226a83f21a7668e62dd (patch)
tree949a355760e243909aa8a0637017a972e8862cf3 /quantum/keymap_common.c
parent3103ea542f0039637a1a266df79a97a7a13fa6b4 (diff)
downloadqmk_firmware-23231fa577f7c6c585124226a83f21a7668e62dd.tar.gz
qmk_firmware-23231fa577f7c6c585124226a83f21a7668e62dd.tar.xz
Converted goodbye to notes, fixed eighth dotted note macro
Diffstat (limited to 'quantum/keymap_common.c')
-rw-r--r--quantum/keymap_common.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c
index c705b7a73..2001438b9 100644
--- a/quantum/keymap_common.c
+++ b/quantum/keymap_common.c
@@ -34,15 +34,13 @@ extern keymap_config_t keymap_config;
#include <inttypes.h>
#ifdef AUDIO_ENABLE
#include "audio.h"
+
#ifndef TONE_GOODBYE
- #define TONE_GOODBYE { \
- {440.0*pow(2.0,(31)/12.0), 8}, \
- {440.0*pow(2.0,(24)/12.0), 8}, \
- {440.0*pow(2.0,(19)/12.0), 12}, \
- }
- #endif
- float tone_goodbye[][2] = TONE_GOODBYE;
-#endif
+ #define TONE_GOODBYE OLKB_GOODBYE
+ #endif /*! TONE_GOODBYE */
+
+ float tone_goodbye[][2] = SONG(TONE_GOODBYE);
+#endif /* AUDIO_ENABLE */
static action_t keycode_to_action(uint16_t keycode);