Forums > MaxMSP

Pressing two buttons gives a bang

September 5, 2009 | 5:45 pm

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


September 5, 2009 | 6:32 pm

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

– Pasted Max Patch, click to expand. –

September 5, 2009 | 8:57 pm

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


September 6, 2009 | 1:06 am

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.


September 6, 2009 | 1:45 am

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.


September 6, 2009 | 10:19 am

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.


Viewing 6 posts - 1 through 6 (of 6 total)