changeable route argument

Nov 17, 2007 at 3:52pm

changeable route argument

Does anyone know if it is possible to change the arguments for route without going into edit mode? I know it can be done with scripting, but I’m looking for another way. I’m using route inside a poly~ and I want to update the argument with the instance number of the thispoly~ object – something like that. Here are two ways to get around the problem, but they each require several objects – which will probably take a toll when using 100 instances inside poly~. So a simple solution using route would be ideal. Any ideas?

max v2;
#N vpatcher 339 235 681 507;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 203 87 44 9109513 zl ecils 1;
#P newex 203 62 39 9109513 zl rot -1;
#P newex 254 117 46 9109513 thispoly~;
#P newex 237 143 27 9109513 ==;
#P newex 203 35 26 9109513 r list;
#P newex 29 210 26 9109513 print;
#P newex 29 143 42 9109513 togEdge;
#P newex 29 183 44 9109513 zl reg;
#P newex 29 62 44 9109513 zl slice 1;
#P newex 186 210 26 9109513 print;
#P newex 186 183 27 9109513 gate;
#P newex 46 87 46 9109513 thispoly~;
#P newex 29 117 27 9109513 ==;
#P newex 29 35 26 9109513 r list;
#P comment 135 124 22 9109513 OR;
#P connect 1 0 6 0;
#P connect 6 0 2 0;
#P connect 2 0 8 0;
#P connect 8 0 7 0;
#P connect 7 0 9 0;
#P connect 3 0 2 1;
#P connect 6 1 7 1;
#P connect 11 0 4 0;
#P connect 4 0 5 0;
#P connect 10 0 13 0;
#P connect 13 0 14 0;
#P connect 14 0 4 1;
#P connect 14 1 11 0;
#P connect 12 0 11 1;
#P pop;

Zachary

#34648
Nov 17, 2007 at 4:16pm

try xroute or Tim Place’s tap.route. Check maxobjects.com for the
download links.

David

On Nov 17, 2007, at 7:52 AM, Zachary Seldess wrote:

>
> Does anyone know if it is possible to change the arguments for
> route without going into edit mode? I know it can be done with
> scripting, but I’m looking for another way. I’m using route inside
> a poly~ and I want to update the argument with the instance number
> of the thispoly~ object – something like that. Here are two ways to
> get around the problem, but they each require several objects –
> which will probably take a toll when using 100 instances inside
> poly~. So a simple solution using route would be ideal. Any ideas?
>

#117313
Nov 17, 2007 at 4:40pm

There’s also a dynamic route abstraction in v001 (http://001.vade.info).

#117314
Nov 17, 2007 at 7:24pm

Thanks for the leads. It ends up not making a significant difference in terms of CPU expense, but at least it simplifies the patching a bit.

Zachary

#117315
Nov 19, 2007 at 9:26pm

Zachary Seldess schrieb:
> I’m using route inside a poly~ and I want to update the argument with
> the instance number of the thispoly~ object – something like that.
> Here are two ways to get around the problem, but they each require
> several objects – which will probably take a toll when using 100
> instances inside poly~.

It won’t take a toll if you put this into an abstraction…

but poly has its own router built in there is actually no need to have
the route in the poly abstraction. I’d do it with the target message to
poly~ instead…

Stefan

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 70 62 48 196617 t b l;
#P newex 70 140 35 196617 zl reg;
#P inlet 70 41 15 0;
#P outlet 53 193 15 0;
#P newex 108 86 50 196617 zl slice 1;
#P newex 125 114 60 196617 thispoly~;
#P newex 108 140 27 196617 ==;
#P newex 53 169 27 196617 gate;
#P connect 7 0 6 0;
#P connect 7 1 3 0;
#P connect 5 0 7 0;
#P fasten 3 1 6 1 153 109 100 109;
#P connect 6 0 0 1;
#P connect 3 0 1 0;
#P connect 0 0 4 0;
#P fasten 1 0 0 0 113 164 58 164;
#P connect 2 0 1 1;
#P window clipboard copycount 8;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#117316
Nov 20, 2007 at 2:45am

Right, your example is nearly identical to one of mine posted above. I was looking for a single-object solution, as well – provided above. Thanks.

#117317
Nov 20, 2007 at 11:17am

Perhaps I have misunderstood your requirements, but could you not use
the target message to poly~ ? this would mean having the receive
object in the main patch and prepending ‘target n’ to an inlet of
poly~

On 20/11/2007, Zachary Seldess wrote:
>
> Right, your example is nearly identical to one of mine posted above. I was looking for a single-object solution, as well – provided above. Thanks.
> –
> http://www.zacharyseldess.com
>
>

#117318
Nov 20, 2007 at 4:22pm

Aahh, Samuel and Stefan, your’re both right about the target message. Too much coffee not enough sleep – brain……not……. working.

Thanks.

Zachary

#117319
Feb 11, 2012 at 6:34pm

Hello everybody,

just found this old topic as I am in this very same situation..

Tried to prepend ‘target n’ to what I want to send to the poly~ instance (a list of two numbers in this case), but doesn’t really work…?
I doublechecked and the instance is not receiving my list..

Of course if I just send the message ‘target n’ to the poly~ inlet, then anything being sent through that inlet will go to the specified instance, but I need to assign a different target for each message.. so the prepend would be ideal, but doesn’t work :(

I hope you guys have a solution!
Thanks a lot for your help!

Pedro

#117320
Feb 11, 2012 at 7:45pm

You can’t just prepend. They would need to be sent as two messages; target first.

Alternatively you could send with just the instance number prepended, then route internally.

#117321
Feb 11, 2012 at 8:56pm

Thanks a lot for the reply Chris

Yep route internally is what I’m doing now, using xroute tho cause I need it to be dynamic. Works good, but don’t like the idea that all the messages are sent to all instances, sounds like a waste of resources to me..

I have many lists (one for each instance, 60 times per second) being sent in realtime from another app (vvvv) via osc, so it would be a lot of target messages, I don’t think it make sense, what do you think? thanks!

#117322
Feb 12, 2012 at 1:13pm

if you need to receive target message for every message, you
need to send one.

ther is no way to avoid doing

[t l b]
“my list” [list target 5]

every time when you want to send a list to a specific voice
number – except when it is the same voice than the one before.

p.s. i agree about the route version not beeing perfect. it is
easier and causess less messages when doing the target stuff
totally outside.

#117323
Feb 12, 2012 at 1:55pm

Thanks a lot Roman

I will try with the trigger object, I’m just a beginner in max and didn’t think about it, shame on me :)
But it’s probably the best solution indeed
Will try and report here, thanks!

#117324

You must be logged in to reply to this topic.