@name Clk
@inputs Start
@outputs X On
@persist I

#Makes the song slow down at the beginning
if(X == 108) {I = 80}
#Speeds the song back up to normal beat
if(X == 140) {I = 50}

interval(I)

#Use a non-toggled button for Start
if(Start&~Start) {On = !On}

if(X >= 900) {On = 0}
if(On) {X++} else{X = 0, I = 50}
