How to get midi file type (0/1/2) in java? -


i parsing midi file using:

sequence sequence = midisystem.getsequence(pafile); 

how distinguish smf file type? have not found method returning it. safe assume, sequence 1 track type 0 , multiple tracks type 1?

it not possible know how tracks in type 2 file handled in general case, , difference between type 0 , 1 files allowed number of tracks. therefore, sequence not bother remember file type.

if want know file type, have read directly file midisystem.getmidifileformat.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -