Couple object's actions

Jun 28, 2013 at 11:33pm

Couple object's actions

Hi everyone.
Does any one know if there is any way to couple two objects?
e.g. have two sliders or number boxes that will reflect any change made to the other and vice versa (being the vice versa the tricky part).

Thanks

#254440
Jun 29, 2013 at 12:00am

<code>

– Pasted Max Patch, click to expand. –

</code>

#254442
Jun 29, 2013 at 12:43am

Thanks Tobiasros, very ingenuous solution.
Still, some problems remain (e.g. if you repeat a number it is not transmitted), and although this particular problem would be easy to work around, this solution would not work for other objects (e.g. multisliders). I was wondering, before trying to find individual patching solutions for different types of interface objects; if there is not any way do this directly (e.g. thru dedicated objects, scripting names or other native software features)?

#254444
Jun 29, 2013 at 1:36am

:-)

<code>

– Pasted Max Patch, click to expand. –

</code>

but wouldn’t it make sense just to have 1 interface object, if your multiples should anyhow be the same?

#254446
Jun 29, 2013 at 5:48am

Thanks again, I think your proposal sets a good direction :)

As for your question, I am just creating two equal interfaces for one same patch but for two simultaneous users . One in a laptop, a the second will be using a tablet as a secondary screen (split screen with air display). Ideally, each change one executes will be seen by the second user.

#254465
Jun 29, 2013 at 6:03am

ah, ok, don’t know if you then just want to mirror your screen…

but you can also just set user interface objects instead of triggering them…

<code>

– Pasted Max Patch, click to expand. –

</code>

#254469
Jun 29, 2013 at 6:19am

that last one is the way to go, just prepend all the messages with “set” and it should work just fine – feedback killer :)

#254470
Jun 30, 2013 at 8:43am

There’s also the sw object which does it via gating. It’s slightly different in execution but also works well.

#254554
Jun 30, 2013 at 5:07pm

Another possibility…

<code>

– Pasted Max Patch, click to expand. –

</code>

#254572
Jun 30, 2013 at 6:27pm

Also developed a solution ;)

thanks everyone

<code>

– Pasted Max Patch, click to expand. –

</code>

#254574

You must be logged in to reply to this topic.