pub fn gain2(x: f32) -> f32