Code gets stuck on the last note of the melody after being played

Yeah, it was a dumb mistake on my part, I'm glad it was just the missing duration note that was the problem.