Limit amount of bangs in a span of time

Andrew Chanover's icon

I am trying to make it so that a bang is triggered after an incoming signal passes a certain threshold and starts "Timer" but the issue is since the signal passes through multiple times when it gets past the threshold it sends out multiple bangs making it so timer just says 20 millisecond (the time between when it's received each bang)

gate forum.maxpat
Max Patch

schlam's icon

hello

it may be a solution...

Sébastien Gay's icon

What the patch should do, remains unclear to me. In the example you sent :

  • each time the threshold is passed, a bang is issued,

  • [timer] measures the time between 2 bangs.

This works properly ?

What would you like the [timer] to measure exactly ? What should be the starting event ? What would be the ending event ? When should it be re-sarted ?

You could make use of edge to simplify ?