1 knob (value) 2 destinations (is there a object for that?)


#1

Hi, i have been trying to control 2 parameter with a "Knob"(or midi CC ) on my synth patch.
The idea is to switch between 2 different envelope´s parameters (attack, decay, sustain, release) , so instead of using 8 knobs i only have to use 4 and a switch button.
i used a DeMux object to do this, seems like a easy thing to do BUT there is a problem!!

when you switch from A to B a zero value reemplace the last value you set on A and the last value you set on A erase the one you left on B.

i have made a patch to solve this but I think it´s a little bit to complex and not very RAM friendly (imagine if i like to do this with more than 10 "knobs")...there must be a easier/more elegant solution, or maybe there is already an object that solve this problem.

the patch works this way:
1-you set "A" parameter value with a knob, then switch to "B" parameter ( in this moment a sample&hold keep the A value so it doesn´t go to ZERO value),
2- Set the "B" parameter and switch back to "A" parameter (sample&hold still active until the KNOB value hit the same Value the sample&hold is holding and start to read the Knob value).

THAT IT!!

IS THERE AND OBJECT THAT HELP TO SIMPLIFY THIS?

THANKS!!

,1 knob 2 destinations.axp (8.1 KB)


#2

I'm not at my laptop to check the name but I think there's an object called Multipot that will do this.


#3

Hey, thanks for the reply!!

I can't find and object with that name.

I found one called rbrt/control/demux_sh... this one does the holding value but when I switch back the value change suddenly , so it only do half of the job.


#4

@MattilynMattroe is right. There is an object called MultiPot 3. Did you update your library?
Edit: if I am not mistaken, the library is case sensitive.


#5

No.
I did updated it since.... Wow very long time ago.

I see .... that's why I couldn't find the multipot object.

Embarrassing mistake.
:sweat_smile:
Sorry for my stupid topic entry and
Thank you for the help!!