Change the factor :P
This works the same as my first version ( https://scratch.mit.edu/projects/136170593/ ) The only difference is here we add an offset so the sine wave is continuous when the frequency is changed