summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c')
-rw-r--r--src/c/config.c2
-rw-r--r--src/c/metronome.c13
2 files changed, 3 insertions, 12 deletions
diff --git a/src/c/config.c b/src/c/config.c
index 0791b85..4f8884c 100644
--- a/src/c/config.c
+++ b/src/c/config.c
@@ -27,7 +27,7 @@ static void config_load_defaults() {
configuration.version = CONFIG_VERSION;
configuration.bpm = 90;
configuration.beats = 4;
- configuration.volume = 100;
+ configuration.volume = 50;
configuration.beat_indicators = 0xff;
}
diff --git a/src/c/metronome.c b/src/c/metronome.c
index 58fdf18..14e6ed6 100644
--- a/src/c/metronome.c
+++ b/src/c/metronome.c
@@ -18,9 +18,6 @@ static AppTimer *beat_timer;
#define COLOR_BG_INV GColorBlack
#define COLOR_FG GColorBlack
-#define NOTE_C4 60
-#define NOTE_C5 72
-
static int current_beat = -1;
static bool playing = true;
@@ -55,14 +52,8 @@ static void metronome_beep() {
if (!config_is_indicator_enabled(BEEP) || speaker_is_muted()) {
return;
}
- const SpeakerNote note = {
- .midi_note = IS_FIRST_BEAT() ? NOTE_C5 : NOTE_C4,
- .waveform = SpeakerWaveformSquare,
- .duration_ms = 150,
- .velocity = 0,
- };
-
- speaker_play_notes(&note, 1, config_get_volume());
+ int tone = IS_FIRST_BEAT() ? 880 : 440;
+ speaker_play_tone(tone, 150, config_get_volume(), SpeakerWaveformSine);
#endif
}