You are maybe looking for a switch.
Some switch can change routings via CV or gate signals. Doepfer has some. Many other brands also do.
Some can be activated manually. Tesseract 8x8 buffered matrix comes to my mind, there are plently other options.