Trying to prevent feedback loop with stereo fader pair - help!
Hello folks,
I'm still at the early stages of finding my feet with MaxMSP.
I'm building a little utility device to help me with another job. It takes two mono inputs and gives me basic level, mute and (very basic) pan control).
Sometimes the pair of inputs will be dual mono, sometimes one stereo.
I've got it pretty much working how I want except for one thing:
In stereo mode, the left hand fader and mute control the right too - all good.
I'm not sure how to make it possible to control the left fader and mute without creating a feedback loop where both faders have outputs feeding the other one's input.
For clarity, I'm not talking about audio feedback, I'm talking about feeding the parameter value output of one fader into the input of the other. It works fine now with the left controlling the right, but I want to connect the right to the left also, so I can control from either fader.
I've tried various things with the change object, but it gets really messy and doesn't work.
Is there an elegant way to do this?
Patch attached (in very in-progress untidy state!)
.......

..........
the "set" message works for most GUI objects. With that you set the value with no output.
@Source: Wouldn't that be a mega feedback loop though? two devices feeding into and out of each other?
@LSKA: YES!!! this is what I needed to hear.....!
Once I get home tonight I'll rebuild
not a problem in max

If I understand you correctly, I would use mc.gain~.
Thanks so much for the input folks.
I guess the fact that I was so certain that I'd run into problems going with the simplest solution highlights the fact that there's something I'm not really understanding with how the live.gain~ works.
If I did the same layout as Source Audio has suggested, but with two number boxes in the place of the live.gain~ objects, I'd get a stack overflow immediately that I changed either of the number box values.
But with live.gain~ I don't.
Can anyone help me understand why?
I guess live gui objects have few fixes included because of
complicated situation with automation, storage and manual control.
Another example - max objects do not output anything if one sets them using set $1 message,
live.gain~ on the other hand adjusts output gain no matter if
contolled by value or by set value.