IO_MIDI に hexdump を付けた
こんな感じ。
yoya@sakura:~/svn/IO_MIDI$ php sample/mididump.php -f CDEG.mid -h HEADER: Format: 0 NumberOfTracks: 1 DivisionFlag: 0 Division: 480 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 4d 54 68 64 00 00 00 06 00 00 00 01 01 e0 MThd TRACK[0]: 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 4d 54 MT 0x00000010 72 6b 00 00 00 46 rk F [0]: _offset:22, DeltaTime:0, EventType:15(Meta Event), MIDIChannel:15, MetaEventType:3(Sequence/Track Name), MetaEventData:, _length:4, 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000010 00 ff 03 00 [1]: _offset:26, DeltaTime:0, EventType:15(Meta Event), MIDI <略>
あと ControllerType の種別を文字で表示出来れば、解析ツールとして使い物になりそうなので、その位で 0.0.1 をリリースします。