Press the green flag a few times to make sure the sound is somewhat synced up. Also, you can press the up or down arrow keys to change the tempo.
I've seen a lot of people doing this kind of thing, so I thought I might try it. Inspired by TayTho. (A few parts might be off.)