[PD] some issues with dynamic patching
IOhannes m zmoelnig
zmoelnig at iem.at
Mon Mar 25 09:17:42 CET 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2013-03-23 14:21, Jeppi Jeppi wrote:
> -When I instantiate dynamically an abstraction (not a pd native
> object, but an abstraction), it does not receive a proper loadbang
> message. And I should have a way to initialize dynamically created
> abstractions, taking into account that I instantiate several of
> them and initialization should be performed indiviually.
since nobody mentioned it, here's an other solution:
- - create your abstractions with a unique ID as an argument: [foo abs72]
- - inside the abstraction, use the unique ID to construct a unique
[send]-name: [r $1-init]
- - at the end of your dynamic instantiation, you send a bang to the
matching receiver: [; abs72-init bang(
after all, when using dynamic patching, you are already manually doing
a lot of stuff Pd usually takes care of. sending a proper init-message
(via a canvas-local loadbang or as described above) is just the icing
on the cake.
fgmasdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlFQCCEACgkQkX2Xpv6ydvQ88wCgkLV4Us8EKHQklInUBZZjmmgT
/VQAniuZpPkFN03jlYCTJPDD/Kqr9Guy
=tNo+
-----END PGP SIGNATURE-----
More information about the Pd-list
mailing list