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?

#255674
Jul 11, 2013 at 12:28pm

For Example if I press buttons in this combination

#255676
Jul 11, 2013 at 12:30pm

example image

Attachments:
  1. example-combination
#255678
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:

<code>

– Pasted Max Patch, click to expand. –

</code>

#255680
Jul 11, 2013 at 12:46pm

example result

#255682
Jul 11, 2013 at 12:48pm

MZED do you use max for live?

#255683
Jul 11, 2013 at 12:57pm

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

#255686
Jul 11, 2013 at 1:00pm

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

#255688
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”

#255692
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

#255695
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.

#255697
Jul 11, 2013 at 1:50pm

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

#255699
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….

#255701
Jul 11, 2013 at 1:54pm

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

<code>

– Pasted Max Patch, click to expand. –

</code>

(copy-paste that blob into a max patch)

#255702
Jul 11, 2013 at 1:57pm

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

#255703
Jul 11, 2013 at 1:58pm

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

#255705
Jul 11, 2013 at 2:20pm

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

#255706
Jul 11, 2013 at 2:37pm

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

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

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

#255709
Jul 11, 2013 at 2:40pm

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

#255711
Jul 11, 2013 at 2:43pm

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

#255712
Jul 11, 2013 at 3:52pm

1) Read this about pasting patches.

http://cycling74.com/forums/topic/welcome-to-the-cycling-74-forums-take-a-moment-to-read-these-instructions/

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?

#255715
Jul 11, 2013 at 5:06pm

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

Attachments:
  1. 22.maxpat
#255720

You must be logged in to reply to this topic.