// Tyler Mi, CSE 143 // Simple class to show off JFugue player // Demonstrates the use of the JFugue library to make music // To use, first download the JFugue library .jar from http://www.jfugue.org/ // In JGrasp, go to Settings > PATH/CLASSPATH > Workspace // Then, click on the CLASSPATHS tab and click on the "New" button // Select the library's jar file import org.jfugue.player.Player; import org.jfugue.pattern.Pattern; public class MusicPlayerSimple { public static void main(String[] args) { Player player = new Player(); Pattern patt = new Pattern("C D E F G A B"); patt.setInstrument("Honkey_tonk"); player.play(patt); } }