Gesture Volume Control

Joe's icon

Hey guys

I am building a gesture controlled granulator, but I want the volume to be controlled by how close the hands are together

I am using cv.jit_OSX_v1.7.2 but modified to utilise the data capture of two dots rather than one.

So what method would be best to analyise the distance between each dot and effect the volume according to this?

Cheers, J

Nikolas K's icon

Pythagorean ?

Max Patch
Copy patch and select New From Clipboard in Max.

But, instead of dong it yourself, which is not that difficult, i prefer this way

I have used this for finding the distance between the barycenter f two figures, and it works fine!
Hope it helps!

Joe's icon

cheers pal,

but where it has the two inlets for the incoming coordinates, if I am tracking two different points, will do I put the x and y of one, both in the same inlet and use the other inlet for the x and y of the other?

or do I need to build a separate one for the other tracked gesture?

cheers, J

Joe's icon

hey, dude forget that last post, I have it working

cant thank you enough, was racking my brain for ages on that ha.

cheers,
J