aboutsummaryrefslogtreecommitdiff
path: root/keyboard/preonic/keymaps/default/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/preonic/keymaps/default/keymap.c')
-rw-r--r--keyboard/preonic/keymaps/default/keymap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/keyboard/preonic/keymaps/default/keymap.c b/keyboard/preonic/keymaps/default/keymap.c
index 48bc72dab..2591af9f0 100644
--- a/keyboard/preonic/keymaps/default/keymap.c
+++ b/keyboard/preonic/keymaps/default/keymap.c
@@ -224,6 +224,7 @@ float tone_music[][2] = {
224 {440.0*pow(2.0,(23)/12.0), 8}, 224 {440.0*pow(2.0,(23)/12.0), 8},
225 {440.0*pow(2.0,(24)/12.0), 8} 225 {440.0*pow(2.0,(24)/12.0), 8}
226}; 226};
227float ode_to_joy[][2] = SONG(ODE_TO_JOY);
227#endif 228#endif
228 229
229void persistant_default_layer_set(uint16_t default_layer) { 230void persistant_default_layer_set(uint16_t default_layer) {
@@ -312,7 +313,9 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
312 case 9: 313 case 9:
313 if (record->event.pressed) { 314 if (record->event.pressed) {
314 #ifdef AUDIO_ENABLE 315 #ifdef AUDIO_ENABLE
315 PLAY_NOTE_ARRAY(tone_music, false, 0); 316 init_notes();
317 set_tempo(150);
318 PLAY_NOTE_ARRAY(ode_to_joy, false, .25);
316 layer_on(_MUSIC); 319 layer_on(_MUSIC);
317 #endif 320 #endif
318 } 321 }
@@ -339,6 +342,6 @@ void process_action_user(keyrecord_t *record) {
339void matrix_init_user(void) { 342void matrix_init_user(void) {
340 #ifdef AUDIO_ENABLE 343 #ifdef AUDIO_ENABLE
341 init_notes(); 344 init_notes();
342 play_notes(&start_up, false, 0); 345 PLAY_NOTE_ARRAY(start_up, false, 0);
343 #endif 346 #endif
344} 347}