Push Button and Piezo Song?

So have a song on arduino (mario theme) and it works correctly with my Inventor’s kit from sparkfun. Now I am trying to figure out how to code a push button so that when i press the button the song starts to play, anyone have the code for this?

anyone have the code for this?

The state change detection example shows how to read a pin that a switch is attached to, and do something.

anyone have the code for this?

If by that you mean “has anyone done exactly that and has the code on the shelf” then 99.9% sure that’s a “no”.

If on the other hand you tried it yourself and posted the code which presumably hadn’t been successful, with explanation of why it was unsuccessful, then 99.9% sure you’ll get some help.

Is your nickname for real?