Another user, @qubits-us , made a sketch with music during the game ( mazes ). It uses similar millis() timing to give the buzzer one "tick" at the right frequency (tone of song) and tempo (speed of song) before looping again... I have yet to figure out that mechanism, but it's open source for your viewing, the very last function in the sketch.