[PD] [instance] and dynamic object creation

IOhannes m zmoelnig zmoelnig at iem.at
Mon Feb 1 14:18:47 CET 2010


Marco Donnarumma wrote:
>> If you want a loadbang, you can send a message "loadbang" to "pd-mypatch",
>> i.e.:
>>
>> [;
>> pd-mypatch.pd obj 10 10 myobject;
>> pd-mypatch.pd loadbang(
>>
>> Ciao
>> --
>> Frank
>>
>>
> 
> Thanks Frank, I was already trying to send a loadbang, but the first
> [instance] has the right id (1), then the following [instance] has id = 3,
> the next 6 and so on. Besides also other instances of [instance] with
> different arguments are affected the same way while sending a loadbang to
> the parent patch.
> You can test this in the example patch I sent yesterday.
> Probably I'm missing something, but I'm struggling to make it work without
> good results.

if you want to send a single bang to a single object the arguments of
which you can control (and know) you can do:

[; pd-mypatch.pd obj 10 10 myobject <myuniqid>;
<myuniqid>_loadbang bang; (

and them make sure you have a [r $1_loadbang] in your [instance]

madfas
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100201/57f7835d/attachment.bin>


More information about the Pd-list mailing list