pub fn midi_to_hz(note: u8, ref_a4_hz: f32) -> f32
Convert an integer MIDI note number back to its frequency in Hz.