A tuned version of an arduino script called Melody. See http://www.arduino.cc/en/Tutorial/Melody