delay from bang to bang

Lorenzo Sattin's icon

Hi Guys,

My patch read brightness variations from FaceTimeHD camera which is divided into 8 column.
I set the threshold and anytime the brightness pass this threshold it gives a bang, but often it gives me 3 or 4 bang sequentially and this is a problem because I need only one bang at time.

Can you help me?

Thank you.

L

Pedro Santos's icon

It probably gives a bang everytime the condition is met, i.e, on every frame. You need to filter the "duplicate" values with something like the [change] object.

Lorenzo Sattin's icon

It could be a solution to delay the bangs after the first for a few ms, but I don't know how.

Stephane Morisse's icon
Wil's icon

past object plus a little bit of smoothing