You need a DPDT switch, one with six posts. The switching mechanism doesn't matter, it just needs to have two sets of three. Connect the bass' output to one side, and the guitar's to the other side. That said, I imagine you might have some grounding issues with that setup, but A) I could be...