H11L1 opto isolator does not pass signal to Arduino (correctly)
simulate this circuit &ndash; Schematic created using CircuitLab

I'm not sure I can help much with the MIDI problem but I can help with the schematic. I've reorganised it for clarity. Since the opto-isolator has an open-collector output any loads it is driving should be connected to supply + rather than common.