Alternating between tunes using tactile switch

Hello All

I'm looking for a way to alternate between 3 tunes, using a single tactile switch.
The original tunes code is here supermariothemesong and as you can see it plays different tunes in a row. now I want to add a switch that goes through these tunes, and also wakes the circuit up, as I think it is better if the thing plays a tune and goes to sleep mode.
can anyone refer me to a good tutorial on this? I've looked into the debounce sample in the IDE, I think it's close but not enough, or maybe I'm just too much of a noob in this. I'm ok with the circuit, but lack a lot when it comes to code.

Thanks in advance for any help!

Could you make the code for the songs work already?

You can add further songs to sing().

What means "alternate"? Do you want to play the next song when the key is pressed again? Then use an counter for the number of clicks, and pass the count to sing() as the song number.

You can use the switch to wake up the Arduino, but that will really save power only with special low-power boards, not with the standard boards including an quartz and other circuitry.