On 12/05/12 12:20, Jörn Nettingsmeier wrote: [snip]
is there a way to generate a variable receive object similar to a send via message box, whose source is defined at load time?
[snip]
or maybe i'm totally up the wrong alley, and someone can suggest a more idiomatic way to deal with this issue?
I think more idiomatic is identifier flow from outside in (rather than trying to get the insides out).
Use $1 in the player and the controller, instead of their own local $0.
Pass the same value in as the player and controller(s) arguments.
Possibly passing in something based on the local $0 of their common parent patch if they have one, otherwise pick a magic name that is hopefully unique enough.
I find it quite common to add layers of $ when nesting abstractions, perhaps with a pattern similar to:
patch: [nbx]--[s $0-r] [foo $0] [r $0-s]--[print] foo: [r $1-r]--[s $0-$1-r] [bar $0-$1] [r $0-$1-s]--[s $1-s] bar: [r $1-r]--[s $0-$1-r] [baz $0-$1] [r $0-$1-s]--[s $1-s] baz: [r $1-r]------------------[+ 1]------------------[s $1-s]
Claude