Plot: y = A · sin(2π f x + φ) + k where x runs 0→1 across the canvas. Audio (loop): y(t) = A · sin(2π · Hz · t + φ) (no DC offset k).
y = A · sin(2π f x + φ) + k
x
y(t) = A · sin(2π · Hz · t + φ)
k