MIDI: Std Serial works, but not SoftSerial

Hi, I can't see anything wrong in your code, except that there may be problems in the implicit conversion from signed integer (the three arguments to noteOn() are ints) to byte (the type expected by write()). Although I don't think it should make much difference I would redefine the arguments to noteOn() as byte or uint8_t (and the loop variable "int note" as well).