Forums > MaxMSP

is it possible to simplify this patch?


Nov 15 2010 | 1:11 pm

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
Nov 15 2010 | 1:21 pm

Yes.

Attachments:
  1. Simplify.maxpat
Nov 15 2010 | 1:23 pm

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

Nov 15 2010 | 1:24 pm

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

Attachments:
  1. Simplify.maxpat
Nov 15 2010 | 1:25 pm

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

Nov 15 2010 | 1:53 pm

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

Nov 15 2010 | 2:01 pm

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

Nov 15 2010 | 9:39 pm

huhu jester,

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

-110

[attachment=146153,1382]

Attachments:
  1. decode.zip
Nov 15 2010 | 9:44 pm

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


-- Pasted Max Patch, click to expand. --

Nov 15 2010 | 9:56 pm

The Decode object has been around for a long time.

Nov 15 2010 | 10:18 pm

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

Nov 16 2010 | 8:55 am

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

Nov 16 2010 | 9:32 am

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.

Nov 16 2010 | 9:40 am

boo, i request immediate OS9 compatibilty.

Nov 16 2010 | 9:41 am

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?

Nov 16 2010 | 10:22 am

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.

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

Forums > MaxMSP