works: MIDI-IN: code + schematics

Yes!
But it should be about 5V... did you checked the resistors?