frank's java lsystems song generator is a program that lets you create a song by defining a few production rules.
you can create a song that uses the pentatonic scale with just five production rules.

you can download the source code here

here are some instruments you can download

after downloading an instrument. you can go to
file->load instrument to select the instrument you just download