diff --git a/src/formatters.rs b/src/formatters.rs index 02abd302..5c0f6958 100644 --- a/src/formatters.rs +++ b/src/formatters.rs @@ -102,7 +102,7 @@ pub fn s2v_f32_hz_then_khz() -> Arc Option + Send + Sync> { Arc::new(move |string| { // If the user inputs a note representation, then we'll use that if let Some(midi_note_number) = note_formatter(string) { - return Some((midi_note_number.clamp(0, 127) as u8) as f32); + return Some(util::midi_note_to_freq(midi_note_number.clamp(0, 127) as u8) as f32); } let string = string.trim();