I have also found postscript/ghostscript to be useful for music. One can,
for example, go directly from algorithm to notation. I have played with
going from a notational algorithm to a text file and then using T2MF to
generate a midi file. David Feldman's homepage
http://spicerack.sr.unh.edu/~dvf/
has some good examples of scores written in postscript.