Looping a MIDI file (JDK1.5 and later)

Purpose. Loops a MIDI file using the new looping methods in the Sequencer of the JDK1.5.

Usage. 

java LoopingMidiPlayer15 midifile

Parameters. 

midifile

the name of the MIDI file that should be played

Bugs, limitations. This program always uses the default Sequencer and the default Synthesizer to play on. For using non-default sequencers, synthesizers or to play on an external MIDI port, see MidiPlayer.This program requires the JDK 1.5. For looping using the JDK 1.4 or earlier, see LoopingMidiPlayer14.

Source code.  LoopingMidiPlayer15.java