Press the buttons to play the songs. To restart the soundtracks/end them early, just press on the green flags again.
Credit to Nintendo for the original soundtrack, and Google for backdrop.