[PD] sssad and different $0 after shutdown

IOhannes m zmoelnig zmoelnig at iem.at
Mon Feb 14 13:52:17 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2011-02-14 13:39, Marco Donnarumma wrote:

> At the moment I solved this giving each abstraction a $1, then using [sssad
> $1/myparam], which is the obvious solution.
> However, the system is quite complex, and assigning a $1 to each abstraction
> it's not practical.
> I think an alternative option involving $0 would be far more efficient in my
> case,
> 
> any hint?
> 

you should always assume that "$0" is unique, even across different
instances of Pd.
thus, you should never rely on $0 being the same, when you re-start your
patch.

the solution is indeed to use abstraction arguments.
if you patch is quite complex, then you should use encapsulation as
well, and build your arguments programmatically.
e.g.
[module A] --> [sssad A/freq]
 [submodule $1/a] --> [sssad A/a/freq]
   [subsubmodule $1/1] --> [sssad A/a/1/gain]
 [submodule $1/b] --> [sssad A/b/freq]
   [subsubmodule $1/1] --> [sssad A/b/1/gain]
...


mfgad
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1ZJYAACgkQkX2Xpv6ydvTOmACgiIr/eZyWV7eM9ZHAv3NwVitj
CZEAoNB+Jl2Pr3Q3g+K03S7FWNF2lrA1
=J7xj
-----END PGP SIGNATURE-----

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


More information about the Pd-list mailing list