A port from original JFugue repository at http://code.google.com/p/jfugue/