Because there are fewer instances of the online MIDI audio format,
And I just have this time to do the relevant applications,
So, special to share the analytic instance of MIDI,
We hope to help you.
1 0x4d,0x54,0x68,0x64,//"MTHD"2 0x00,0x00,0x00,0x06,//Head block length: Excluding the first 4 bytes and the 4 bytes3 0x00,0x01,//format: 1-multitrack, synchronous4 0x00,0x03,//number of tracks = 35 0x01,0xE0,//basic Time format 0x01e0 = 480;6 7 0x4d,0x54,0x72,0x6b,//"MTRK"8 0x00,0x00,0x00,0x15,//21 The length of the regulation: excluding the first 4 bytes and the 4 bytes9 0x00,//Time DifferenceTen 0xFF,0x58,0x04,0x04,0x02,0x18,0x08,//other features, beats, length 4, numerator 4, denominator 4, metronome clock 24, four diaeresis contains 32 note number 8 One 0x00,//Time Difference A 0xFF,0x51,0x03,0x0C,0x35,0x00,//other features, speed, length 3: Microseconds of a four-minute note 800,000 - 0x84,0xE7,0x00,//Time difference: 128^2*4+128*103+0 = 78720 - 0xFF,0x2F,0x00,//track End flag. the - 0x4d,0x54,0x72,0x6b,//"MTRK" - 0x00,0x00,0x09,0xc9,//2505 Length of the regulation: - 0x00,//Time Difference + 0xFF,0x03,0x07,//song title, track name, length 7 - 0x54,0x72,0x61,0x63,0x6b,0x20,0x31,//"Track 1" + 0x00,//Time Difference A 0xFF,0x04,0x1F,//instrument name, length,--"Microsoft GS wavetable SW Synth" at 0x4d,0x69,0x63,0x72,0x6F,0x73,0x6F,0x66,0x74,0x20,0x47,0x53,0x20,0x57 -,0x61,0x76,0x65,0x74,0x61,0x62,0x6c,0x65,0x20,0x53,0x57,0x20,0x53,0x79,0x6e,0x74 -,0x68 , - - 0x00,//Time Difference - 0xb0,0x0A,0x40,//swap control, control Number 10 (audio-visual Controller), (cakewalk default value is 64) new value in - 0x89,0x30,//Time Difference =128*9+48=1200us to 0x90,0x40,0x50,//Note Open, note number 64, speed (E5:MI) + - 0x81,0x58,//Time Difference =128*1+88=216us the 0x80,0x40,0x40,//Note closed, note number 64, speed (E5:MI) * $ 0x18,//Time Difference =24usPanax Notoginseng 0x90,0x45,0x50,//Note Open, note number 69, speed (A5:LA) - the 0x81,0x58,//Time Difference =128*1+88=216us + 0x80,0x45,0x40,//Note closed, note number 69, speed (A5:LA) A the 0x18 , + 0x90,0x47,0x50,//Note Open, note number 71, speed (B5:SI) - $ 0x81,0x58,//Time Difference =128*1+88=216us $ 0x80,0x47,0x40,//Note closed, note number 71, speed (B5:SI) - - 0x18 , the 0xb0,0x40,0x7F,//switching control, control number 64 (extended sound Controller), new value 117 - Wuyi 0x00,//Time Difference the 0x90,0x48,0x64,//Note Open, note number 72, speed (C6:do) - Wu 0x00,//Time Difference - 0x90,0x45,0x50,//Note Open, note number 69, speed (A5:LA) About $ 0x83,0x60,//Time Difference =128*3+96=480us - 0x80,0x48,0x40,//Note closed, note number 72, speed (C6:do) - - 0x00,//Time Difference A 0x80,0x45,0x40,//Note closed, note number 69, speed (A5:LA) + the 0x00,//Time Difference - 0x90,0x4A,0x64,//Note Open, note number 74, speed (D6:re) $ the 0x81,0x70,//Time Difference =128*1+102=230us the 0x80,0x4A,0x40,//Note closed, note number 74, speed (D6:re) the the 0x00,//Time Difference - 0x90,0x4C,0x64,//Note Open, note number 76, speed (E6:MI) in the 0x81,0x70,//Time Difference =128*1+102=230us the 0x80,0x4C,0x40,//Note off, note number 76, speed (E6:MI) About the 0x00 , the 0xb0,0x40,0x7F,//switching control, control number 64 (extended sound Controller), new value 117 the + 0x00 , - 0x90,0x4A,0x64,//Note Open, note number 74, speed (D6:re)
MIDI Audio Format parsing