Distance between two fingers

Jul 9, 2013 at 3:05am

Distance between two fingers

Hey,
i’d like to have the distance between two fingers, and only when there are two fingers. What’s wrong with this simple patch ? Thanks !

<code>

– Pasted Max Patch, click to expand. –

</code>

#255359
Jul 9, 2013 at 3:25am

I don’t have mira, but wouldn’t it be as simple as this:

<code>

– Pasted Max Patch, click to expand. –

</code>

#255363
Jul 9, 2013 at 4:03am

Just realized my silly mistake ! just need to gate the messages. Yeah, i’ve used your mathematical approach before discovering that mira.mt.centroid could spare me this.
thanks

#255369
Jul 9, 2013 at 4:06am

edit, no need to edit anything, just swap the 2 patch chords going in the +. object. (blush…)

#255370
Jul 9, 2013 at 11:52am

You would have discovered the answer if you had just looked in da mira.

#255454

You must be logged in to reply to this topic.