Write a program to play the popular English nursery rhyme.
Some Wikipedia articles that may be useful:
- Twinkle Twinkle Little Star (has an audio clip of what your program's output should sound like)
- Modern musical symbols (to learn about the music notation used above)
- Note#Note frequency (hertz) (the formula for calculating the frequency of each note)
Some guidelines for your submission:
Your program must use the computer's sound card. If your programming language doesn't have convenient access to audio hardware, your program must create an output file in some standard format such as WAV or MIDI.
Your program must actually generate its output. For example, embedding the Ogg Vorbis file from Wikipedia would not be allowed.
The audio quality must be acceptable. At the very least, the song should be easily recognizable. Preferably, it should sound good as well.
The focus should be on code size, sound quality, or both (explain which one you decided on). Elegant solutions would also be great. Have fun!
This is a code-golf, so shortest code wins