Forums > MaxMSP

Counting gesture


Joe
January 4, 2013 | 7:50 pm

Hey

I want to know how long a hand is in a particular area in my webcam patch, I have a grid system set up so I know I get a bang when the hand is in an area, but how can I know how long it has been in that area for?

Counter? If so, can the counter have more than the 5 inlets? I need about 80

Cheers,

J


January 4, 2013 | 11:37 pm

you need to know when it’s there, and when it’s *not* there. Measuring the time between the two will give you how long it’s been there.

So yes, you want to use a timer mechanism between the "yes" and "no" replies. That word just before "mechanism" in the previous sentence should help you on your way.

Alternatively, you might want to "accumulate" bangs while the hand is in a given zone. BUT doing this, or pretty much any patching * 80 gets sloppy quickly.

At the end of the day I might want to do it with a accumulating jitter matrix of sorts – using a feedback loop – but that’s me.


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