pub fn square_generator(phase: f32) -> f32