MIDI 5v and 3.3 volt

Odd way of phrasing it (resistor selection doesn't obfuscate anything) but that does pretty much describe how any isolated current loop system (like MIDI) works.

Steve