aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboard/atomic/keymaps/pvc/makefile.mk2
-rw-r--r--quantum/audio.h1
-rw-r--r--quantum/keymap_common.c14
-rw-r--r--quantum/musical_notes.h2
-rw-r--r--quantum/song_list.h7
5 files changed, 15 insertions, 11 deletions
diff --git a/keyboard/atomic/keymaps/pvc/makefile.mk b/keyboard/atomic/keymaps/pvc/makefile.mk
index eefa42855..d46996650 100644
--- a/keyboard/atomic/keymaps/pvc/makefile.mk
+++ b/keyboard/atomic/keymaps/pvc/makefile.mk
@@ -1,7 +1,7 @@
1BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) 1BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
2MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 2MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
3EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 3EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
4CONSOLE_ENABLE = no # Console for debug(+400) 4CONSOLE_ENABLE = yes # Console for debug(+400)
5COMMAND_ENABLE = yes # Commands for debug and configuration 5COMMAND_ENABLE = yes # Commands for debug and configuration
6NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 6NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
7BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 7BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
diff --git a/quantum/audio.h b/quantum/audio.h
index 3aba8370a..05d314c94 100644
--- a/quantum/audio.h
+++ b/quantum/audio.h
@@ -3,6 +3,7 @@
3#include <avr/io.h> 3#include <avr/io.h>
4#include <util/delay.h> 4#include <util/delay.h>
5#include "musical_notes.h" 5#include "musical_notes.h"
6#include "song_list.h"
6 7
7#ifndef AUDIO_H 8#ifndef AUDIO_H
8#define AUDIO_H 9#define AUDIO_H
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;
34#include <inttypes.h> 34#include <inttypes.h>
35#ifdef AUDIO_ENABLE 35#ifdef AUDIO_ENABLE
36 #include "audio.h" 36 #include "audio.h"
37
37 #ifndef TONE_GOODBYE 38 #ifndef TONE_GOODBYE
38 #define TONE_GOODBYE { \ 39 #define TONE_GOODBYE OLKB_GOODBYE
39 {440.0*pow(2.0,(31)/12.0), 8}, \ 40 #endif /*! TONE_GOODBYE */
40 {440.0*pow(2.0,(24)/12.0), 8}, \ 41
41 {440.0*pow(2.0,(19)/12.0), 12}, \ 42 float tone_goodbye[][2] = SONG(TONE_GOODBYE);
42 } 43#endif /* AUDIO_ENABLE */
43 #endif
44 float tone_goodbye[][2] = TONE_GOODBYE;
45#endif
46 44
47static action_t keycode_to_action(uint16_t keycode); 45static action_t keycode_to_action(uint16_t keycode);
48 46
diff --git a/quantum/musical_notes.h b/quantum/musical_notes.h
index 2170f3f18..ccdc34f27 100644
--- a/quantum/musical_notes.h
+++ b/quantum/musical_notes.h
@@ -32,7 +32,7 @@
32#define WD_NOTE(n) WHOLE_DOT_NOTE(n) 32#define WD_NOTE(n) WHOLE_DOT_NOTE(n)
33#define HD_NOTE(n) HALF_DOT_NOTE(n) 33#define HD_NOTE(n) HALF_DOT_NOTE(n)
34#define QD_NOTE(n) QUARTER_DOT_NOTE(n) 34#define QD_NOTE(n) QUARTER_DOT_NOTE(n)
35#define ED_NOTE(n) EIGTH_DOT_NOTE(n) 35#define ED_NOTE(n) EIGHTH_DOT_NOTE(n)
36#define SD_NOTE(n) SIXTEENTH_DOT_NOTE(n) 36#define SD_NOTE(n) SIXTEENTH_DOT_NOTE(n)
37 37
38// Note Styles 38// Note Styles
diff --git a/quantum/song_list.h b/quantum/song_list.h
index ef36a1cdd..b626c3fa6 100644
--- a/quantum/song_list.h
+++ b/quantum/song_list.h
@@ -15,4 +15,9 @@
15 QD_NOTE(_B4), E__NOTE(_D5), Q__NOTE(_G5), \ 15 QD_NOTE(_B4), E__NOTE(_D5), Q__NOTE(_G5), \
16 H__NOTE(_FS5), 16 H__NOTE(_FS5),
17 17
18#endif \ No newline at end of file 18#define OLKB_GOODBYE \
19 E__NOTE(_E7), \
20 E__NOTE(_A6), \
21 ED_NOTE(_E6),
22
23#endif