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?
Changing the destination of a send is not possible. However you can use [forward] object for that purpose.
HTH,
#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
thanks a lot guys.
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.
Emmanuel Jourdan saved me here :)
#0 isn't your friend if you have a list of target receives whose names can change at run-time.
Also #0 is a unique-id, not an argument name. forward
is what I was looking for, thank gawrsh (and yeah you can dynamically set send~ and receives~ but this is for max msgboxes I presume - 15 years later sry)