Forums > MIRA

Distance between two fingers

July 9, 2013 | 3:05 am

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>


July 9, 2013 | 3:25 am

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

<code>

– Pasted Max Patch, click to expand. –

</code>


July 9, 2013 | 4:03 am

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


July 9, 2013 | 4:06 am

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


July 9, 2013 | 11:52 am

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


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