format of midi messages

Firstly, you need Serial.write(), not Serial.print().

Secondly, Specs.