title: How to get midi file type (0/1/2) in java?
body: <p>I am parsing a MIDI file using:</p>
  
  <pre><code>Sequence sequence = MidiSystem.getSequence(paFile);
  </code></pre>
  
  <p>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?</p>