Browse Source

Reduce needless precision in audio note frequency calculation (#21496)

pull/21624/head
Nebuleon 9 months ago
committed by GitHub
parent
commit
9bc85ff5af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      quantum/process_keycode/process_audio.c

+ 1
- 1
quantum/process_keycode/process_audio.c View File

@ -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) {


Loading…
Cancel
Save