format of midi messages

As you should using Serial.write(), they should be sent as binary.