pub fn gain2(v: f32) -> f32