Just click the green flag and watch the sine wave being modulated. Instructions from the original project are below. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Look inside, everything is explained there. But the basic agenda is to create a 2d graph... that changes and looks good! You have one line of code to do this, which means that you can only calculate everything using one line to make the line you see on screen right now.
Based on a formula I found in the Wikipedia article about FM synthesis: https://en.wikipedia.org/wiki/Frequency_modulation_synthesis Basically, this is frequency modulation with constant amplitudes, a constant carrier frequency, and a gradually increasing modulator frequency.