ここが参考になる。
http://www2s.biglobe.ne.jp/~yyagi/material/smfspec.html#deltatime
MIDIキーボードを拾ってみた。
ド・ミ・ソ 90 noteON 34 note 55 vel 37 note 55 vel 30 note 55 vel 30 note 0 vel 34 note 0 vel 37 note 0 vel
うまくいっていないコード(0D 0Aがおまけでついてくる)
//31 34 0D 0A //ドを押したとき 34 38 0D 0A //38 35 0D 0A 34 38 0D 0A //ドを離した時 30 0D 0A //31 34 34 0D 0A//レを押した時 35 30 0D (*0A) //38 35 0D 0A 35 30 0D 0A//レを離した時 30 0D 0A