I know it’s a long discussed subject in these forum pages but being novice on max and following step by step tuts and advices to build my patch, I’m stuck for a while trying to solve something that seems simple but just drive me crazy.
Here is the thing: I’m performing a blob detection on a video and extract blobs infos (via cv.jit.blobs.centroids) to trigger midi notes. What I would like to do is trigerring a midi note "on" message whenever a new blob’s detected and triggering a midi note "off" message whenever it disappears. The problem is that my blob continuously output bangs which continuously reset the midi sound produced.
I tried to filter these extra and useless bangs out with several objects (onebang, change, zl change) but can’t get it to work.
Any suggestion will be greatly appreciate !
Well, no answer yet, maybe my question’s a little abstract, here is my patch, guess it could help to visualize the thing (you’ll need cv.jit abstraction to play it).
When you load a video (Read) and the blobs detection’s performed, it triggers continuously bangs on "noteout", but I would just need the first one (basically to trigger a note) and a release message when the blob disappears.