Two-way toggle switch to deroute the signal?


#1

I tried searching for this without any luck. If I overlooked it, if you could redirect me in the right direction it would be much appreciated.

So I've got a patch going and I want to expand it a bit further before I put it into a pedal enclosure. My patch goes delay > pitch mod > verb. What I want to do is add 3 two-way toggles (up or down) to switch between two delay types, two modulation types and two reverb types, aka two flavors of each of the three effects. Basically derouting the input from one FX to the other.

My question is, what object(s) do I use for toggle switches and re-routing the signal? Or do I have to treat the switch like a bypass switch to turn one effect on and the other one off, and if so, how? Can you show me visually? I'm very new to all of this patching. Thanks!


#2

You can use demuxers and muxers to create a routing system. For 2 way system use these:

demux/demux 2
mux/mux 2

And then use ctrl/toggle to do the switching.


#3

@jaffasplaffa
Thank you! Worked like a charm!

Followup question: Can I assign a physical knob to several parameters? For example, for the delay, when I flip the toggle switch so I go from delay mode 1 (say, digital) to mode 2 (say, tape simulator) can I have the same knob that controls delay length in mode 1 control delay length in mode 2?


#4

Yes, but this probably needs a little bit more setting up, cause when you change from destination 1 to destination 2, you want the knob to keep the value. Like if you use the knob to set destination 1 for 23 and you change to destination 2, you want destination 1 to stay at 23, while dialing in destination 2. So it doesnt jump to 0.

I dont have my axo now, but it is possible. Maybe I can check how to do it later tonight, when I am home again and post something that might work.


#5

@Agoraphobe

Try this:

Switch mod system.axp (2.8 KB)


#6

Topping this as I've wired up the toggles (middle pin to vdd, outside pins to their own digital inputs on the axo), but in my patch I've just used ctrl/toggle objects to route the signal, as I've had no hardware wired up and just controlled everything on the computer. But now that it's all connected, what objects do I use to assign the two toggle positions to the digital inputs?

The toggles are SPDT On-On, if that matters.


#7

GPIO/in/digital

Wiring suggestion:

For a switch which will select from two states, only one digital input is needed. You can use your SPDT switch, but you’ll only connect two terminals, middle and one of the others.
The usual setup is to connect one pin to ground, the other to a port configured with a pull-up resistor, either internal or external.

When the switch is open, the input will read high; when closed, it will read low.


#8

Ok, thanks for that info, but could you rephrase this part somehow: "the other to a port configured with a pull-up resistor, either internal or external."

English is not my first (or second) language and my knowledge of technical terms is subpar. Could you dumb it down some more please? XD


#9

if you create a gpio/in/digital object you will get a menu, mode. just select pullup there and connect your switch there. that will do it. the other end goes to gnd.

what this will do:

the digital in will read a high value if nothing is connected since in fact 3.3v is connected via a resistor. (the pullup resistor) once you close the switch you connect gnd and the digital in and hence you will get a low reading.

this is a very common technique with digital inputs and also the reason these pullup and pulldown resistors are already included on the processor.


#10

Big thanks! Hopefully all of my stupid questions will be helpful to other tech noobs using the search function in the future, haha!