Pressing two buttons gives a bang

Keygap's icon

Hello,
we usually using controllers and assigning they controls to give numbers or bangs. How to make a unique bang when pressing two buttons at the time for e.g. to reset to default value. I think this should be something about receiving to bangs and if a difference in time between them is in some range then makes a bang. But how is that possible?

One more...

I have numbers counting up to 8, and at the next loop (starting from 1) I want it to be 16 long. How to make this bang to wait after accidental bang until it begins a loop. I want to modify length, but on time, making loop to know that from now it is shorter or longer,....

I hope I'm good explainer.

Looking for help

Dg's icon

> How to make a unique bang when pressing two buttons at the time
buddy?

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

Roman Thilenius's icon

[thresh] or [timer] may be of interest.

or convert your "two buttons" into 0/1 states (if the physical
controller allows this), then you dont need to measure time.

Keygap's icon

Hello,
I see you are posting some kind of code witch perhaps belong to MAX/MSP. I forgot to add that my questions related to Pd-extended. I thought it's almost the same.

Thanks for replay. Do you have ideas to pd~ about that same question.

My controller is nanoKontrol(Korg) in this case and the buttons send 127 and 0 right away after release. I use [select 127] to make it bang ones. So I have two bangs of the same kind and don't know how to join them to make an independent bang for another purpose?

Appreciate your help.

Keygap's icon

Hmm..

I found that timer counts time difference between bangs. When pressing two buttons time difference is 0. Then [select 0] and I got a bang

Will I be so accurate then I need it most? I still looking for a proximal time between 0 and 20.

I'm here to speed up my work. Thanks for sharing your experience.

Keygap's icon

Nice forum. Thank you. I guess I banged down from the tree starting to mix up Max and Pd. I following your link to pd forums.

Thanks.