[SOLVED] switch with three in and three outs in RNBO

Massimiliano Bellavia's icon

Hi!

I'm trying to create a stereo delay plugin using RNBO.

Now, I have two delays in the RNBO patch (one for L and one for R), and their delay time is controlled by two sets of param objects (one for ms delay and the other for bpm sync delay), one for each, so I have the flexibility to control left and right with different delay times.

Now, I would like to have the possibility to switch to a "link" mode, where I have only one control for both the channels.

In order to do that I created another single set of param objects to control BOTH of the delays.

Now, I need some strange switch with three inputs and three outputs:

in 1 -> Delay time L

in 2-> Delay time R

in 3-> Delay time L+R

out 1-> to Delay L

out 2-> to Delay R

out 3-> to both Delay L and R

the switch should have two states. In the first state in 1&2 and out 1&2 should be open, in 3 and out 3 should be closed. In the second state is the opposite.

Is this possible?

Or I am crazy and there is a totally different and easier way to do this?

Delay Muoridilei (ms + bpm + stereo).maxpat
Max Patch

My patch is attached

Thank you so much