diff --git a/preonic/config.h b/preonic/config.h index a42731f..dabc4aa 100644 --- a/preonic/config.h +++ b/preonic/config.h @@ -7,6 +7,7 @@ #define BOOT_SONG Q__NOTE(_F5), Q__NOTE(_G5), Q__NOTE(_C6) #define STARTUP_SONG SONG(BOOT_SONG) + #define TONE_BASE S__NOTE(_C5) #define TONE_ALT S__NOTE(_F5) #define TONE_FN S__NOTE(_G5) #endif diff --git a/preonic/keymap.c b/preonic/keymap.c index 1aac00d..68f3f39 100644 --- a/preonic/keymap.c +++ b/preonic/keymap.c @@ -48,6 +48,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; #ifdef AUDIO_ENABLE + float tone_alt[][2] = SONG(TONE_BASE); float tone_alt[][2] = SONG(TONE_ALT); float tone_fn[][2] = SONG(TONE_FN); #endif @@ -59,6 +60,11 @@ void keyboard_post_init_user(void) { layer_state_t layer_state_set_user(layer_state_t state) { uint8_t layer = get_highest_layer(state); switch(layer) { + case BASE: + #ifdef TONE_MAIN + PLAY_SONG(tone_base); + #endif + break; case ALT: #ifdef TONE_ALT PLAY_SONG(tone_alt);