"Recreating" this pedal with only one footswitch

Hi!

I’m in the middle of figuring out how to do a “2 channel” fx pedal with only one footswitch. So basically it would let signal go through normally when off, engage only fx 1 after 1 stomp → only fx 2 on 2nd stomp → off.

So it acts kinda like a ABC switching pedal, but the signal is normalized to the output and the footswitch turns channel 1-2 on. Essentially a 3 states footswitch.

How would I go about this?

Essentially a 3 states footswitch.

Detect when the switch becomes pressed rather than when it is pressed and move to the next state and run the code for the new state.

See the StateChangeDetection example in the IDE

And how would I go about redirecting the audio signal? What components would I need?

Reed relays.