I've spent a lot of time researching this online and most of the info indicates it's not practical. I have a case I can use, I'm quite sure I can locate the proper components and wire them all together, but not if it's not going to work.
I know most midi devices output 5V on one pin. I don't know how they will behave if 2 devices are wired to a switch.
I want to use this in my rigs where I might be playing steel or guitar through a mono G2M guitar controller, or a basic midi keyboard controller into the same Alesis midi sound module and switch between the controllers if/as required without having to disconnect/re-connect the midi cable.
Ea. controller has only a midi OUT port and neither has an on/off switch.
I know there are 2 into 1 midi merger devices available, but I don't see how that would work for selecting one or the other controller. The ones I see, like the Midi Solutions brand, don't include a switching function.
I guess I'm showing my ignorance here as I know only some basic things concerning midi, so I'd like input from those of you who are more knowledgeable with navigating and routing and the electrical/mechanical aspects. Some of you eat this stuff for breakfast and I'd appreciate your help if you feel up to it.
Here's a crude drawing of the A/B device concept.

