Set argument for [route]

sono's icon

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

Mathieu Chamagne's icon

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

sono's icon

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

Roman Thilenius's icon

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