detect if number box is active or inactive

bjoerndamlarsen's icon

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

Oli Mason's icon

can you elaborate a bit?

do you have a part of your patch to post,

regards,

Oli

bjoerndamlarsen's icon

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

5554.blobtracking.maxpat
Max Patch
kthozoid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

here's a rough signal domain solution: