by Bregalad » Tue Sep 04, 2012 7:06 am
Midi type 0 file contains a single track, which contains data for ALL channels in chronological order.
For example if 3 channels are used and all 3 plays a single note but at the same time, it will be stored like this :
Channel 1 Key On key, velocity
Channel 2 key on, key, velocity
Channel 3 key on, key velocity,
delta time
channel 1 key off, key, velocity
channel 2 key off, key, velocity
channel 3 key off, key, velocity
A midi type 1 file contains multiple tracks and it would typically be stored like this :
==== Track 1 ===
channel 1 key on, key, velocity
delta time
channel 1 key off, key, velocity
==== Track 2 ===
channel 2 key on, key, velocity
delta time
channel 2 key off, key, velocity
==== Track 3 ===
channel 3 key on, key velocity
delta time
channel 3 key off, key, velocity