pub fn dmix(x: f32) -> f32