Forums > MaxMSP

How can I synch dial and num displays?

April 13, 2011 | 10:28 pm

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?


April 13, 2011 | 10:37 pm

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. –

April 13, 2011 | 11:07 pm

thanks so much!


Viewing 3 posts - 1 through 3 (of 3 total)