pub fn peak(x: f32, coarse: bool) -> f32