JMSL MIDI Example, using JavaSound MIDI

This applet launches a self-modifying MusicShape whose Instrument is a MidiInstrument. JMSL.midi is set to MidiIO_JavaSound
You need a Java-enabled browser to view this applet.

source code

JavaSound MIDI needs a soundbank to playback MIDI notes. A soundbank does not ship with the Java runtime, so users must either install one by hand or the developer may post a soundbank on the same server as the applet to be loaded at runtime, as the code excerpt below demonstrates

  private void initMIDI() {
        JMSL.midi = MidiIO_JavaSound.instance();
        try {
            ((MidiIO_JavaSound) JMSL.midi).setSoundbankURL(new URL(getCodeBase(), "javasound/"));
        } catch (MalformedURLException e) {
        JMSL.midi.edit(new Frame());;

Using OSX but don't hear anything? Check Java console for exceptions, and read about the Applet Thread bug

(C) 1997 Phil Burk and Nick Didkovsky, All Rights Reserved
JMSL is based upon HMSL (C) Phil Burk, Larry Polansky and David Rosenboom.
JMSL Examples