Midi notes to Digital outputs

Hello Mike, when I connect the serial pin 0 RX to pin n°6 of 6N139 the Arduino's program generate an error while transfer the code.

avrdude: stk500_getsync(): not in sync: resp=0xfc

Do you know what's wrong?