MIDI shouldn't cause ground loops, it's designed to avoid them. Is your MIDI cable wired correctly? A properly wired cable has all pins wired through, pin 2 (the center one in the "C" shape) should be connected using the cable's shield wire, and the connector shields should not be connected at all.