First, Second, etc, buttons pressed

Jul 11, 2013 at 12:16pm

First, Second, etc, buttons pressed

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

Jul 11, 2013 at 12:28pm

For Example if I press buttons in this combination

Jul 11, 2013 at 12:30pm

example image

  1. example-combination
Jul 11, 2013 at 12:33pm

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:


– Pasted Max Patch, click to expand. –


Jul 11, 2013 at 12:46pm

example result

Jul 11, 2013 at 12:48pm

MZED do you use max for live?

Jul 11, 2013 at 12:57pm

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

Jul 11, 2013 at 1:00pm

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

Jul 11, 2013 at 1:37pm

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

Jul 11, 2013 at 1:41pm

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

Jul 11, 2013 at 1:46pm

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.

Jul 11, 2013 at 1:50pm

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

Jul 11, 2013 at 1:51pm

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

Jul 11, 2013 at 1:54pm

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


– Pasted Max Patch, click to expand. –


(copy-paste that blob into a max patch)

Jul 11, 2013 at 1:57pm

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

Jul 11, 2013 at 1:58pm


Jul 11, 2013 at 2:20pm

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

Jul 11, 2013 at 2:37pm

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

  1. 2.maxpat
Jul 11, 2013 at 2:39pm

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

Jul 11, 2013 at 2:40pm

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

Jul 11, 2013 at 2:43pm

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

Jul 11, 2013 at 3:52pm

1) Read this about pasting patches.

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?

Jul 11, 2013 at 5:06pm

I’ve made this, but i don’t like… Works very bad…

  1. 22.maxpat

You must be logged in to reply to this topic.