works: MIDI-IN: code + schematics

Can you please try it without the led?
I don't know where you measured, but my guess is after the voltage drop of the led ;D