There's sensors on the track that trigger the music to skip to certain parts depending on how fast the train is moving through the course. That way, the music matches certain parts of the ride perfectly.
@@yuzuru01 First, wow this was a comment 10 years ago you're replying to so I was confused at first. Second, you can hear it while riding the ride skipping ahead as it reaches certain sections.