https://docs.google.com/open?id=0B9tg78cq3y-pWXo2dUVOeEhJNkE
this is a fairly simple framework for playing musical notes with SFXR. it is based on the drum machine example.
the function note() will play notes. at the moment is is very primitive- all it will do is take a number value, in terms of semitones above (or, for negative values, below) C3, and the waveform to use. it also has, in this example, a kick and hat sound which can be used.
if someone else has time, making it so that it checks a table of frequency translations that is generated at setup(), rather than doing the 0.19 * 2^24*freq every time it plays a new note would be just great. maybe even make it so that you can enter in a sting such as note_c#4 rather than 14.
i will be making a program that allows you to write songs now, and will post that once it is complete. that program will plrobably include options for note length/volume and such.