Looping a MIDI file (JDK1.4 and earlier)

Purpose. Loops a MIDI file using loopstart/loopend meta messages (JDK1.4 and earlier).

Usage. 

java LoopingMidiPlayer14 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 does not work with the JDK 1.5. For looping using the JDK 1.5, see LoopingMidiPlayer15.

Source code.  LoopingMidiPlayer14.java