.
The knobs act as attenuverter if CV inputs are connected, or give a fixed voltage if unconnected.
I think It would be helpful too set the appropriate usage default
The module it’s an adder like shown. Using the switch it adds or subtracts cv inputs (attenuverted by knobs) to the first output connected from top to bottom. If cv input is not connected a fixed voltage (set by the same knob) is given to be added or subtracted in the same way.
When the knob is acting as an attenuverter you could want to have the default to 0 or maybe to +10 (100%), just to have a quick command for it.
If the adder is used to change the pitch by octaves you could want to have your knob default set to +1
I imagined it to be used in live performing, to reset to a specific pitch voltage after an eventual (intentional or not) detuning. It’s just a double click instead of: right click, digit voltage, enter.
Unfortunately this solution increases by 0.1% the Cpu load… But… Am I placing the code in the right place?
To minimize CPU, one pattern is to do this parameter manipulation at some control rate than sample rate. The logic is that human interactions happen at a much lower rate than audio.
This can be as simple as counting samples and updating parameters every n samples (32 or 64 are common). I use one that lets me set the control rate by time (invariant to sample rate) rather than sample count (time changes based on sample rate), but there’s more plumbing to get that hooked up.
Another option is to make your knobs also pushbuttons that when pushed, memorize the “return” value. This I can imagine in a physical module.
I have a knob implementation that enables click actions per knob (with a callback) or step-click to increment/decrement by some defined step, if you want to see how clicky knobs can be implemented.