I put an example of some sound code on arduino.cc
Arduino Forum - pwm sound revisited, pitch and volume control
It uses the pwm hardware so the sound is done in the background, and has pitch and volume control. Wish I had another 12k of program space to play with