First, Second, etc, buttons pressed

quantesizer's icon

I want to do a patch that understands which button i press for first... Who can help me?

quantesizer's icon

For Example if I press buttons in this combination

Device-On-Off-Bottoni.maxpat
Max Patch
quantesizer's icon

example image

example-combination.png
png
mzed's icon
Max Patch
Copy patch and select New From Clipboard in Max.

It depends somewhat on what you want to do with that information, how long to remember it, etc. Here's a patch that keeps an ordered list of what buttons were pressed:

quantesizer's icon

example result

quantesizer's icon

MZED do you use max for live?

quantesizer's icon

i don't have zl.join :( Where i can find it?

quantesizer's icon

zl.join: No such object
no help file found for zl.join :( :(

Chris Muir's icon

The "dot" naming for zl is new w/ Max 6. Change it to "zl join" instead of "zl.join"

quantesizer's icon

ok it works dotless, nut the patch i want the reverse function:
wneh i press a new button, in the message it joins on the left, i want to add it on the right

mzed's icon

Look through the whole zl help file, it's a really powerful object. Some combination of [zl slice] and [zl rot] should fix you up.

quantesizer's icon

I mean that when I click a TextButton the value joins ON THE RIGHT, not on the left...

quantesizer's icon

but i can't find a soultion.... i had a look in the zl help file, but i can't find....

mzed's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Now that I see your example, I might do something like this:

(copy-paste that blob into a max patch)

quantesizer's icon

MZED I LOOOVE YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

quantesizer's icon

THANK YOU, THANK YOU, THANK YOU, THANK YOU, THANK YOU, THANK YOU, THANK YOU, THANK YOU!!!!!!!!!!!!!!!
IT'S PERFECT!!!!!
:D

quantesizer's icon

Please last thing: if in the sequence I want to switch off only one button?

quantesizer's icon

Ok for delete just one for time i've do this

2.maxpat
Max Patch
quantesizer's icon

but if I want to re-add (in the deleted box) one different value?

quantesizer's icon

I would like to do a cycle on improvised combinations... limitless.... a cycle of combinations..

quantesizer's icon

for example in my patch i can't re-add the same box value after delete.... :(

mzed's icon

2) The patch I wrote assumed the user would click each of the top buttons once, and only once. That might be wrong -- but, I'm not sure what you are after. After turning off ever occurrence of "B", for example, you want to turn on a different switch at that position? Or, start with four new values?

quantesizer's icon

I've made this, but i don't like... Works very bad...

22.maxpat
Max Patch