pub fn hz_to_mel(hz: f32) -> f32Expand description
Convert a frequency in Hertz to the HTK mel scale.
HTK convention: mel = 2595 * log10(1 + hz / 700).
hz_to_mel(1000.0) ≈ 1000.0 (the mel scale is anchored so that 1000 Hz maps
to ≈ 1000 mel under HTK). Negative inputs are clamped to 0 Hz.