What magic are you using for this game? When you switch tabs, the beats sound slower when you're not looking directly at the game, and faster when you are. I think it's brilliant, the way you've set it up.
I haven't coded any functionality like that lol