]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/process_keycode/process_audio.c
Remove more commented out MCUs
[qmk_firmware.git] / quantum / process_keycode / process_audio.c
index eb74796fa7a9dd6f7daf61ab642e0b803c9d7ad4..0a25aa5354f14c45923255f9c322864830d5a1ef 100644 (file)
@@ -6,10 +6,14 @@
 #endif
 float voice_change_song[][2] = VOICE_CHANGE_SONG;
 
-static float compute_freq_for_midi_note(uint8_t note)
+#ifndef PITCH_STANDARD_A
+    #define PITCH_STANDARD_A 440.0f
+#endif
+
+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) * 440.0f;
+    return pow(2.0, (note - 69) / 12.0) * PITCH_STANDARD_A;
 }
 
 bool process_audio(uint16_t keycode, keyrecord_t *record) {
@@ -61,4 +65,4 @@ void process_audio_all_notes_off(void) {
 }
 
 __attribute__ ((weak))
-void audio_on_user() {}
\ No newline at end of file
+void audio_on_user() {}