pattr @bindto inconsistency

Jul 21, 2013 at 6:03am

pattr @bindto inconsistency

I’m using pattr to keep redundant ui components consistent with the “model”.

The model consists of an LED with a pattr “on_off”. The redundant ui components also sport an LED (I took the idea roughly from http://mspcafe.g2312.de/tLb/framework/patchdesign/)

When I toggle the “model” LED, everything works as expected. However, when toggling any of the @bindto-pattr-LEDs, the adjacent @bindto-pattrs get triggered twice (as seen by the connected counters).

I’m not sure I’m using the pattr as intended.

So if anyone could reproduce the behaviour and possibly provide an improved version of my patch without the excess triggering, that would be great.

Thank you
Bernhard

– Pasted Max Patch, click to expand. –
#256631
Jul 26, 2013 at 4:48am

I did away with pattr for now and use pvar instead. There are 2 solutions in the attached patcher: The one on top uses pvar, the one below send/receive.

– Pasted Max Patch, click to expand. –
#257192

You must be logged in to reply to this topic.