MidiFile::getNumTracks


#1

HI all, I’m relatively new to Juce and I’m trying to get familiar with the midi apis: I’ve got many thins unclear, and probably many of them regards some misconception of the midi standard. For now my actual question regards the method getNumTracks: I tried to load a bunch of midi files, and I noticed that most of them has just one track, I’ve found just one midi file that contained 17 tracks; anyway, I tried to open those files with a midi editor and they’re standard midi files, with multiple tracks, so what’s the problem? does it depends on the format of the midi file?


#2

Ok I just figured out that this is exactly the difference between file format 0 and 1 :slight_smile:


#3

Yes, that’d explain it!