AGOS: Revert my MIDI changes that caused bug #6664.