basic sine wave logic
fixed sine maths