Arduino has a predefined sketch for out putting music to a speaker.
If you are familiar with sheet music, you can create a text file that has the noted and timing. But to use data on the Arduino takes a bit of manipulation/
So if you created a file with the following data:
G3-3
F4-8
You could use a bit of freebasic to extract the data to cut and paste into the sketch. Freebasic is free and is available for most platforms.
...