Hey Frank, the main issues I'm trying to solve using $0 sssad are:
those presets after machine shutdown
objects can learn with a click where to receive/send params from/to.
Initially [sssad PARAMETER_NAME $0] worked fine, but when the machine restarts after shutdown all $0 are different.
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?
thanks!
On Fri, Feb 11, 2011 at 07:51:23PM +0000, Marco Donnarumma wrote:
Thanks Andras, yes I know I could, I was curious to understand if a
solution
including $0 could've been possible.
For which problem are you searching a solution? If you want to use a [sssad] parameter to only communication with a local receiver/sender inside an abstraction for example, you should put the $0 as second argument at the end:
[sssad PARAMETER_NAME $0]
You may need a fresh sssad for this, which unfortunatly is not part of Pd-extended, so grab it from sourceforge or the rj-library (where it's called [u_sssad])
Ciao
Frank Barknecht Do You RjDj.me? _ ______footils.org__
-----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