limit number of bang messages within a period of time

se.thorn's icon

Does anyone know of a function in Max that will output, within a short period of time, only the first of several received bang messages? More specifically, I need bursts of two, three or four bang messages to be interpreted as single bangs. Thanks for any help.

1st Creative Solutions's icon

Hi,

You could try the [onebang] object, however that is fairly limited. It is best to use a series of "if" statements to filter the bangs based on integer values. The [onebang] object sounds like it may do what you are looking for.

Regards,

1st Creative Solutions
support@1stcreativesolutions.co.uk

www.1stcreativesolutions.co.uk

mharter's icon

Look at speedlim.

MH

se.thorn's icon

Thanks for the replies. I was thinking of using thresh but didn't want to add any delay to the chain. Since the bursts of bang messages arrive at tempo-relative times in my patcher, speedlim is just what I need.