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