Function nih_plug::util::freq_to_midi_note
source · pub fn freq_to_midi_note(freq: f32) -> f32
Expand description
The inverse of f32_midi_note_to_freq()
. This returns a fractional note number. Round to a
whole number, subtract that from the result, and multiply the fractional part by 100 to get the
number of cents.