How can I synch dial and num displays?

kindofblue272's icon

I'm trying to figure out a way to keep dial and number displays synched in a synth GUI and I'm pretty lost right now. The problem is if I have a dial running into a number, then adjusting the number either by typing or click-dragging will not update the dial display, leaving the dial showing an incorrect value--so when I go back and drag the dial I get a jump in value. I've tried using switch, gswitch, etc. to stop dial output when adjusting the number but everything I do results in a stack overflow error. I'm guessing I need some way to distinguish between input from the inlet and input from the mouse, but I'm pretty stuck with this. Any suggestions?

Luke Hall's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I think you want to use [prepend set] to avoid the stack overflow as shown in the patch below:

kindofblue272's icon

thanks so much!