Forums > MaxMSP

First, Second, etc, buttons pressed

July 11, 2013 | 12:16 pm

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


July 11, 2013 | 12:28 pm

For Example if I press buttons in this combination


July 11, 2013 | 12:30 pm

example image

Attachments:
  1. example-combination

July 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:

<code>

– Pasted Max Patch, click to expand. –

</code>


July 11, 2013 | 12:46 pm

example result


July 11, 2013 | 12:48 pm

MZED do you use max for live?


July 11, 2013 | 12:57 pm

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


July 11, 2013 | 1:00 pm

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


July 11, 2013 | 1:37 pm

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


July 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


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


July 11, 2013 | 1:50 pm

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


July 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….


July 11, 2013 | 1:54 pm

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)


July 11, 2013 | 1:57 pm

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


July 11, 2013 | 1:58 pm

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


July 11, 2013 | 2:20 pm

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


July 11, 2013 | 2:37 pm

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

Attachments:
  1. 2.maxpat

July 11, 2013 | 2:39 pm

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


July 11, 2013 | 2:40 pm

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


July 11, 2013 | 2:43 pm

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


July 11, 2013 | 3:52 pm

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?


July 11, 2013 | 5:06 pm

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

Attachments:
  1. 22.maxpat

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