Just use the sliders to change the frequency and the rate of the sine wave.
Props to C3aca for the tutorial: https://scratch.mit.edu/users/C3aca/