I am parsing a MIDI file using:
Sequence sequence = MidiSystem.getSequence(paFile);
How do I distinguish the SMF file type? I have not found any method returning it. Is it safe to assume, that sequence with only one track is type 0 and with multiple tracks type 1?