On 05/05/11 10:31, Jeppi Jeppi wrote:

Hi again,just another question regarding the pd-msg system. Say I have two 
parametrized abstractions [boo 1] and [boo 2] loaded in my patch. When I send a 
message to them to dynamically create some objects inside, I send it as [obj 20 30 
metro 100(--->[s pd-boo.pd] which, of course, goes to both instances.
Would it be a way to send the message only to a single instance, maybe taking 
into account the creation parameters?
Adding prefix to the abstraction names is not elegant, as that would require 
previously creating n abstractions, named [1_boo] ,  [2_boo] and so on...clumsy

I would probably workaround this stuff by doing something like this:

boo.pd
----8<----
[inlet]            <-- or a global [receive BOO]
 |
[route $1]
 |
 | [loadbang]
 |  |
 | [clear(         <-- click this before saving too
 | /
[s pd-$0-boo-subpatch]
                   <-- the $0 is local to each abstraction
[pd $0-boo-subpatch]
----8<----

Then [list prepend 1] etc each message before sending it to all the [inlet] or [send BOO] or whatever.


Claude
--
http://claudiusmaximus.goto10.org

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to