Pressing two buttons gives a bang

Sep 5, 2009 at 5:45pm

Pressing two buttons gives a bang

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 Smile

#45347
Sep 5, 2009 at 6:32pm

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

– Pasted Max Patch, click to expand. –
#163441
Sep 5, 2009 at 8:57pm

[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.

#163442
Sep 6, 2009 at 1:06am

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.

#163444
Sep 6, 2009 at 1:45am

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 Smile

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.

#163446
Sep 6, 2009 at 10:19am

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.

#163447

You must be logged in to reply to this topic.