This is terribly inefficient, but it works! Sine wave with changeable freq and amplitude. You need to lower draw speed to be able to see the higher frequencies.
I used the sine function built into Scratch