Just want to see if I understand MIDI
You start with note on which is Decimal 144 followed by the value of the note (0-127) then pause until the note is released and issue note off or decimal 128. So middle C would be
HEX 0x90,0x3c",0x80 or
DEC 144,60,128 or
BIN 1001 0000,0110 0000,1000 0000...