Forums > MaxMSP

detect if number box is active or inactive

May 9, 2013 | 12:35 pm

How can I detect if a number box is active or inactive… I need to send 1 when numbers are running and 0 when numbers have stopped running


May 9, 2013 | 1:59 pm

can you elaborate a bit?

do you have a part of your patch to post,

regards,

Oli


May 9, 2013 | 3:29 pm

I have posted a part of the code… im using blob tracking to detect people and the patch will give me x, y and mass of each blob. So far I can track four blobs, which works fine.. my problem is that when no blobs are visible then the patch still display the last received x, y and mass of each blob.. I would like a 0 in all the number boxes when there are no blobs to detect.

another choice would be to detect if the number boxes are getting values in and then create a 1 and if no values are received then 0

basically I would like to start a wave fil with 1 and 0 to stop it with each blob


May 9, 2013 | 4:21 pm

here’s a rough signal domain solution:

– Pasted Max Patch, click to expand. –

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