How can I synch dial and num displays?

Apr 13, 2011 at 10:28pm

How can I synch dial and num displays?

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?

Apr 13, 2011 at 10:37pm

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

– Pasted Max Patch, click to expand. –
Apr 13, 2011 at 11:07pm

thanks so much!


You must be logged in to reply to this topic.