This example codecode is public domain.
Plays a set of famous melodies
circuit: 100 Ohm resistor in series of a 8-ohm speaker to digital pin 8 Push button to GND on pin 2 (for starting melody) and pin 4 (for selecting melody). Thats it!
created 29 Nov 2014 by Michael J. Franz http://www.electronic-cosmos.de