|
Java MIDI Sequence Problem? -
December 12th, 2007
When I call getPatchList() on a Sequence created from a MIDI file, why is the length of the Patch[] zero.
The sequence plays successfully. Here's the code:
Sequence song = MidiSystem.getSequence(new File("alive.mid"));
System.out.println(song.getPatchList().length) // returns 0
Sequencer s = MidiSystem.getSequencer();
s.setSequence(song);
s.open();
s.start();
|