Forums > MaxMSP

Set argument for [route]

May 26, 2007 | 8:38 am

Hi,

I’m looking for a way to use a list in coll for multiple b-patchers.

I have a patch with 12 b-patchers (one original) with multisliders in them. Via arguments each multislider gets its own task.

What i want to do is to make a score in one single list for all the b-patchers/multisliders.

For example:
multislider 1 controls the gain, mslider2 the Q and mslider 3 the frequency

I thought off the next:

list:
listindex+variable, var var var

1gain, 4 5 2;
1Q, 3 8 9;
2gain, 2 3 8;
2freq, 7 7 4;
3Q, 2 9 8;
3freq, 7 8 9;
etc..

But for this case its needed to set the argument of route, so i can set de route for each b-patcher seperatly via an argument. 1gain, 2gain, 3gain etc… but it doenst seem possible to set the argument of route.

is there another way to accomplish the same?

thanks,

poul


May 26, 2007 | 10:44 am

route #1gain #1Q #1freq

+set the first argument of your bpatcher to a unique id (in it’s
inspector)
so
route in the bpatcher with argument 1 will be set to : route 1gain
1Q 1freq
route in the bpatcher with argument 1 will be set to : route 2gain
2Q 2freq

Mathieu

http://www.maxobjects.com

http://mathieu.chamagne.free.fr


May 26, 2007 | 11:18 am

its a bit more complicated than that because the symbols "gain" and "Q" are also variables and arguments..

but

i already figured it out myself. writing one big list in a coll that gets devided into other colls, one per bpatcher.

thanks anyway!!

poul


May 26, 2007 | 8:11 pm

note that route takes lists too – and strips off the first
element in list on its output.

so you could create custom lists like "filter1 300" to be
able to use [route filter1 filter2 filter3] to route int "300".

if you want a dynamic route object, make an abstraction yourself.
[gate] is your friend here


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