Change the pitch variable to make the music higher or lower.
I made very small changes. Most credit goes to griffpatch.