dynamically assign Send/Receive-parameter names. possible?

Feb 17, 2009 at 2:23pm

dynamically assign Send/Receive-parameter names. possible?

I have something i haven’t found a solution to yet, maybe you guys can help me out.
let’s say i have a patch which uses some send/receive objects. if i now want to load the same patch a second time, so that i have two individual patches, the send/receive-objects will interfer because they have the same name-argument.
is there a possibility, that dynamically assigns a name to a send-object.

for example in the original patch the send object is call „s XYZ“, when i now load the same patch the second time, the send in the new patch will be automatically named „s XYZ2“. The third patch will have „s XYZ3“ and so on.

is this possible and can somebody push me into the right direction?

#42354
Feb 17, 2009 at 2:38pm

Changing the destination of a send is not possible. However you can use [forward] object for that purpose.

HTH,

#151567
Feb 17, 2009 at 2:49pm

#0 is your friend.

This is in the tutorials/reference somewhere – check it out.

If you put #0 in front of a symbol in a patch it will be replaced with a unique patch identifier number when you load the patch

Regards,

Alex

#151568
Feb 17, 2009 at 2:55pm

thanks a lot guys.

#151569
Feb 17, 2009 at 5:23pm

Just to chime in, changing the destinations of send~ and receive~ is possible with the “set” message – though #0 should work equally well, the set message may give you better control in other circumstances.

#151570

You must be logged in to reply to this topic.