summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNebuleon <2391500+Nebuleon@users.noreply.github.com>2023-07-27 00:05:26 -0400
committerGitHub <noreply@github.com>2023-07-26 21:05:26 -0700
commit9bc85ff5afb09892312f3b130b7e5f6209835f09 (patch)
treee779b790838e5e45665c4bd9b52ab85640f14fda
parent3e631cb5a50bccd33cac3967f4ed02559cb6250b (diff)
Reduce needless precision in audio note frequency calculation (#21496)
-rw-r--r--quantum/process_keycode/process_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_audio.c b/quantum/process_keycode/process_audio.c
index ef2f52c9f1..a8464e1b83 100644
--- a/quantum/process_keycode/process_audio.c
+++ b/quantum/process_keycode/process_audio.c
@@ -13,7 +13,7 @@ float voice_change_song[][2] = VOICE_CHANGE_SONG;
float compute_freq_for_midi_note(uint8_t note) {
// https://en.wikipedia.org/wiki/MIDI_tuning_standard
- return pow(2.0, (note - 69) / 12.0) * PITCH_STANDARD_A;
+ return powf(2.0f, (note - 69) / 12.0f) * PITCH_STANDARD_A;
}
bool process_audio(uint16_t keycode, keyrecord_t *record) {