This applet launches a self-modifying MusicShape whose Instrument is a MidiInstrument. JMSL.midi is set to MidiIO_JavaSound
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/soundbank-min.gm"));
} catch (MalformedURLException e) {
e.printStackTrace();
}
JMSL.midi.edit(new Frame());
JMSL.midi.open();
}
Using OSX but don't hear anything? Check Java console for exceptions, and read about the Applet Thread bug