From 795f509a86f6ab2a945ed3a437f3f7ec3fd2ab8b Mon Sep 17 00:00:00 2001 From: Valerie Date: Mon, 23 May 2022 00:46:15 -0400 Subject: [PATCH] correctly configured startup song --- preonic/config.h | 15 +++++++++++++++ preonic/keymap.c | 9 --------- 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 preonic/config.h diff --git a/preonic/config.h b/preonic/config.h new file mode 100644 index 0000000..b16be3d --- /dev/null +++ b/preonic/config.h @@ -0,0 +1,15 @@ +#pragma once + +#ifdef AUDIO_ENABLE + #define AUDIO_INIT_DELAY + #define NO_MUSIC_MODE + + #define BOOT_SONG Q__NOTE(_F5), Q__NOTE(_G5), Q__NOTE(_C6) + #define STARTUP_SONG SONG(BOOT_SONG) + + #define TONE_FN S__NOTE(_G5) +#endif + +#define MUSIC_MASK (keycode != KC_NO) + +#define MIDI_BASIC diff --git a/preonic/keymap.c b/preonic/keymap.c index 384f1b2..8bd3b90 100644 --- a/preonic/keymap.c +++ b/preonic/keymap.c @@ -53,19 +53,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { #define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL #ifdef AUDIO_ENABLE - #define STARTUP_SONG SONG(PREONIC_SOUND) - #define BOOT_SONG HD_NOTE(_F5), HD_NOTE(_G5), HD_NOTE(_C6) - - #define TONE_FN HD_NOTE(_G5) - - float boot_song[][2] = SONG(BOOT_SONG); float tone_fn[][2] = SONG(TONE_FN); #endif void keyboard_post_init_user(void) { - #ifdef BOOT_SONG - PLAY_SONG(boot_song); - #endif rgblight_disable_noeeprom(); }