How to overwrite parameter input?


#1

I have a potentiometer that controls the volume of a sound. I've made a switch that makes me able to choose if the potentiometer should control the volume, filter or pitch of the sound. So far all this is working fine.

Trouble is that when I use the potentiometer, all parameters change. I would like to keep the parameters that are not selected by the switch in their default position until I select them. Otherwise the pitch and filter is in some weird place when I flick the switch. Make sense?


#2

That's an unusual selection mechanism; setting a binary address for where the potentiometer value should go. But hey, let's see what can be done.

The patch below will route a value to a set of destinations and remember the value set for each of them. The value will only reach it's destination when it is addressed by the switches and the value changes. The example includes 3 separate value-latch circuits. Would something like that do the trick?

value_demux_latch.axp (6.9 KB)


#3

Thank you so much for your input, dr. justice. Keeping the values locked works! BUT when switching between parameters, the values automatically snaps to the position of the potentiometer. So we are kinda back to my first problem...
- Is there a way to make sure that the values only snap to the position of the potentiometer only when the potentiometer is being rotated?

  • I just want to have behaviour that works a bit like synths where you have 1 knob for multiple parameters... Like the Microkorg... If you know a better setup, please shoot!

#4

i would suggest looking at the hook object.


#5

Ahh, I forgot you'd be using an analog input. The analog inputs are noisy, so they always change a little, triggering the change detector all the time. As you can see the patch works with the dial since that has no noise.

Here's a change detector with noise suppression, but I don't know if that's enough. You can change the mov_avg filter length and you can replace the div_64 quantizer with another division.

If you could use an encoder instead of a potentiometer, the noise problem would go away.


#6

I tried using a Hook object and followed the example in the Libary. Its solved :slight_smile:


#7

Nice! Yes with hooking the noise isn't a problem. My example was non hooked, and thus noise sensitive.


#8

check multipot 3 object. it does all you need.