Multiple Bang, to a unique bang! help need

fedezack's icon

hi guys, i am developing a image analyzis patch. I capture the video with a webcam and with the cv.jit object i take the number of the blob that the webcam see.... for example, the webcam see 2 people, and my number box says 2! i need to connect this number box to a select object, and into some bangs. If the box says 1, the select give me back the 1st bang, is the number box says 2, the select give me the 2nd bang. All works fine, but the metro object i use to run the webcam, check for the number of the cv.jit every 2 ms, so i have multiple bang..... for my works i need to have only one bang, (the idea is to start a different audio source, for every object the webcam see), but with this multiple bang, i don't know how to set up the audio. Any ideas?

ElectronicElement's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi fedezack,
I had the same problem and that is what I came up with for a solution. I hope it will does the job for you.

Peter Castine's icon

[onebang]?

laonikoss's icon

Electronic element: why go to such lengths? having a constantly-running [counter] object and a [

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

Fedezack: Here's a nice simple solution:

ElectronicElement's icon

laonikoss I haven`t built it especially for his project, that was part of my project and I just copied that part. The combination - counter > greater than > select > in my patch has different values in my patch and has different purpose.