MIDI input works but not for all MIDI signals

That's a good looking waveform! Hopefully the 4N35 you have is representative of the norm and lot-to-lot variations (and manufacturer-to-manufacturer variation) won't affect things too much.

--
The Rugged Circuits Yellowjacket: 802.11 WiFi module with ATmega328P microcontroller, only 1.6" x 1.2", bootloader