diff options
Diffstat (limited to 'keyboards/planck/keymaps/khord/keymap.c')
| -rw-r--r-- | keyboards/planck/keymaps/khord/keymap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/keyboards/planck/keymaps/khord/keymap.c b/keyboards/planck/keymaps/khord/keymap.c index c3ba6ef07..0adda43af 100644 --- a/keyboards/planck/keymaps/khord/keymap.c +++ b/keyboards/planck/keymaps/khord/keymap.c | |||
| @@ -249,7 +249,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 249 | case QWERTY: | 249 | case QWERTY: |
| 250 | if (record->event.pressed) { | 250 | if (record->event.pressed) { |
| 251 | #ifdef AUDIO_ENABLE | 251 | #ifdef AUDIO_ENABLE |
| 252 | PLAY_NOTE_ARRAY(tone_qwerty, false, 0); | 252 | PLAY_SONG(tone_qwerty); |
| 253 | #endif | 253 | #endif |
| 254 | persistent_default_layer_set(1UL<<_QWERTY); | 254 | persistent_default_layer_set(1UL<<_QWERTY); |
| 255 | } | 255 | } |
| @@ -258,7 +258,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 258 | case COLEMAK: | 258 | case COLEMAK: |
| 259 | if (record->event.pressed) { | 259 | if (record->event.pressed) { |
| 260 | #ifdef AUDIO_ENABLE | 260 | #ifdef AUDIO_ENABLE |
| 261 | PLAY_NOTE_ARRAY(tone_colemak, false, 0); | 261 | PLAY_SONG(tone_colemak); |
| 262 | #endif | 262 | #endif |
| 263 | persistent_default_layer_set(1UL<<_COLEMAK); | 263 | persistent_default_layer_set(1UL<<_COLEMAK); |
| 264 | } | 264 | } |
| @@ -267,7 +267,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 267 | case DVORAK: | 267 | case DVORAK: |
| 268 | if (record->event.pressed) { | 268 | if (record->event.pressed) { |
| 269 | #ifdef AUDIO_ENABLE | 269 | #ifdef AUDIO_ENABLE |
| 270 | PLAY_NOTE_ARRAY(tone_dvorak, false, 0); | 270 | PLAY_SONG(tone_dvorak); |
| 271 | #endif | 271 | #endif |
| 272 | persistent_default_layer_set(1UL<<_DVORAK); | 272 | persistent_default_layer_set(1UL<<_DVORAK); |
| 273 | } | 273 | } |
| @@ -308,7 +308,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 308 | if (record->event.pressed) { | 308 | if (record->event.pressed) { |
| 309 | #ifdef AUDIO_ENABLE | 309 | #ifdef AUDIO_ENABLE |
| 310 | stop_all_notes(); | 310 | stop_all_notes(); |
| 311 | PLAY_NOTE_ARRAY(tone_plover, false, 0); | 311 | PLAY_SONG(tone_plover); |
| 312 | #endif | 312 | #endif |
| 313 | layer_off(_RAISE); | 313 | layer_off(_RAISE); |
| 314 | layer_off(_LOWER); | 314 | layer_off(_LOWER); |
| @@ -326,7 +326,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 326 | case EXT_PLV: | 326 | case EXT_PLV: |
| 327 | if (record->event.pressed) { | 327 | if (record->event.pressed) { |
| 328 | #ifdef AUDIO_ENABLE | 328 | #ifdef AUDIO_ENABLE |
| 329 | PLAY_NOTE_ARRAY(tone_plover_gb, false, 0); | 329 | PLAY_SONG(tone_plover_gb); |
| 330 | #endif | 330 | #endif |
| 331 | layer_off(_PLOVER); | 331 | layer_off(_PLOVER); |
| 332 | } | 332 | } |
| @@ -347,12 +347,12 @@ void matrix_init_user(void) { | |||
| 347 | void startup_user() | 347 | void startup_user() |
| 348 | { | 348 | { |
| 349 | _delay_ms(20); // gets rid of tick | 349 | _delay_ms(20); // gets rid of tick |
| 350 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | 350 | PLAY_SONG(tone_startup); |
| 351 | } | 351 | } |
| 352 | 352 | ||
| 353 | void shutdown_user() | 353 | void shutdown_user() |
| 354 | { | 354 | { |
| 355 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | 355 | PLAY_SONG(tone_goodbye); |
| 356 | _delay_ms(150); | 356 | _delay_ms(150); |
| 357 | stop_all_notes(); | 357 | stop_all_notes(); |
| 358 | } | 358 | } |
| @@ -364,7 +364,7 @@ void music_on_user(void) | |||
| 364 | 364 | ||
| 365 | void music_scale_user(void) | 365 | void music_scale_user(void) |
| 366 | { | 366 | { |
| 367 | PLAY_NOTE_ARRAY(music_scale, false, 0); | 367 | PLAY_SONG(music_scale); |
| 368 | } | 368 | } |
| 369 | 369 | ||
| 370 | #endif | 370 | #endif |
