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)