format of midi messages

Serial.write(00000100);

sends the decimal number 100. You need the 0b prefix to tell the compiler that you are using binary numbers.

Serial.write(0b00000100);