Forums > MaxMSP

First, Second, etc, buttons pressed

Jul 11 2013 | 12:16 pm

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

Jul 11 2013 | 12:28 pm

For Example if I press buttons in this combination

Jul 11 2013 | 12:30 pm

example image

  1. example-combination


Jul 11 2013 | 12:33 pm

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 | 12:46 pm

example result

Jul 11 2013 | 12:48 pm

MZED do you use max for live?

Jul 11 2013 | 12:57 pm

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

Jul 11 2013 | 1:00 pm

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

Jul 11 2013 | 1:37 pm

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

Jul 11 2013 | 1:41 pm

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 | 1:46 pm

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 | 1:50 pm

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

Jul 11 2013 | 1:51 pm

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

Jul 11 2013 | 1:54 pm

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 | 1:57 pm

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

Jul 11 2013 | 1:58 pm


Jul 11 2013 | 2:20 pm

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

Jul 11 2013 | 2:37 pm

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

  1. 2.maxpat
Jul 11 2013 | 2:39 pm

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

Jul 11 2013 | 2:40 pm

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

Jul 11 2013 | 2:43 pm

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

Jul 11 2013 | 3:52 pm

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 | 5:06 pm

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

  1. 22.maxpat
Viewing 23 posts - 1 through 23 (of 23 total)

Forums > MaxMSP