is it possible to simplify this patch?

Nov 15, 2010 at 1:11pm

is it possible to simplify this patch?

hi all, i try to get some input to activate one button and deactivate all others. In the case of 4 objects is fine but with, say, 60 becomes a mess to draw all the connections. Is there an easier way of doing this?

Attachments:
  1. Simplify.maxpat
#53328
Nov 15, 2010 at 1:21pm

Yes.

Attachments:
  1. Simplify.maxpat
#191837
Nov 15, 2010 at 1:23pm

great! super efficient.. i did not think that way… thanks a lot EasyMac!!!
A

#191838
Nov 15, 2010 at 1:24pm

You can also [radiogroup] in place of the individual bangs with assigned numbers.

Attachments:
  1. Simplify.maxpat
#191839
Nov 15, 2010 at 1:25pm

i see, but it’s part of a larger patch for which the previous way is perfect.. probably i will use a general send to cut of connections.. your patch is of great help!
A

#191840
Nov 15, 2010 at 1:53pm

hi,

if you want to use the mecanism in different patchers with no connections you can also do this :

– Pasted Max Patch, click to expand. –

g

#191841
Nov 15, 2010 at 2:01pm

very nice indeed… i used some send at the end.. the result is similar..
thanks
A

#191842
Nov 15, 2010 at 9:39pm

huhu jester,

try [110.decode] and save unnecessary parallel messages.

-110

[attachment=146153,1382]

Attachments:
  1. decode.zip
#191843
Nov 15, 2010 at 9:44pm

Orrrrrrr………you could just use the [decode ] object (might not exist in max4) :D

– Pasted Max Patch, click to expand. –
#191844
Nov 15, 2010 at 9:56pm

The Decode object has been around for a long time.

#191845
Nov 15, 2010 at 10:18pm

I’ve been doing this same thing a really inefficient way for years because I didn’t know about decode. Thanks!

#191846
Nov 16, 2010 at 8:55am

decode is limited to 8 bit (unless that has changed)

#191847
Nov 16, 2010 at 9:32am

I just placed a [decode 512], so it can do larger than 8 bit, but the object gets so wide it can be hard to use.

#191848
Nov 16, 2010 at 9:40am

boo, i request immediate OS9 compatibilty.

#191849
Nov 16, 2010 at 9:41am

True, would it be useful in some situations if it could have an optional overflow outlet to cascade multiple objects together, using the first in the chain for input?

#191850
Nov 16, 2010 at 10:22am

yeah cascading [decode] is quite messy, you need to do -1, and you need to clip and split … that why i used [gate] for my abs.

#191851

You must be logged in to reply to this topic.