JFugue is a Java API for music programming. It's easy to use, and developers don't have to manage MIDI events. JFugue is useful for applications in which music is generated at run-time: algorithmic/evolutionary music, music editors, jazz improvisers.