My main interest is in algorithmic composition, so I am hoping to find a tool that can be scripted or programmed, or accept input files generated by a script or program. A tool I once looked at was Pyknon, a Python library for generating MIDI files, in conjunction with the book Music for Geeks and Nerds. If any of my three readers has any suggestions, let me know!