IOhannes m zmoelnig wrote:
Enrique Erne wrote:
i did some testing with sssad-help.pd and the modified sssad.
- inside the [sssad key] only the first (most top) instance of sssad
has the active toggle. i guess that's due to creation order.
one thing i noticed is that your version does not work "on the fly", everything works fine wwhen you open a new patch containing 2 instances of [sssad key].
however, it doesn't always work so like this. e.g.: if i create a new [sssad key] object it will be "first" (toggle on) if i create another [sssad key] object, it will be "first" again! (toggle on).
good to know.
i now removed my system (with r and s) and replaced it with the singleton's method with [value]. good thing it now has the same name as before ($1.SSSAD.req).
i repeated my test 1 - 3 from before. it seems all correct.
additionally i created a new [sssad key] "on the fly". this one has now thanks to the original method (of singleton) no initial first setting. ...but if created "on the fly" it does not have the correct content. -->but the original sssad has the same problem afaik.
attached is the the latest sssad, please test.
eni
#N canvas 267 25 773 461 10; #X obj 153 54 inlet; #X obj 153 417 outlet; #X obj 153 395 list; #X obj 176 161 r SSSAD; #X obj 218 134 s SSSAD; #X obj 218 112 list prepend $1; #X obj 176 189 list trim; #X obj 218 54 inlet; #X obj 56 308 r SSSAD_ADMIN; #X obj 56 356 b; #X obj 56 334 route set; #X obj 153 81 b; #X obj 176 252 route $1; #X obj 191 282 s $0-sssad-data; #X obj 372 302 list; #X obj 372 362 list prepend $1; #X obj 372 389 list prepend persist; #X obj 372 412 s SSSAD_ADMIN; #X obj 372 190 r SSSAD_ADMIN; #X obj 372 236 route save; #X obj 372 258 b; #X obj 395 279 r $0-sssad-data; #X obj 372 212 spigot; #X obj 550 98 loadbang; #X obj 549 281 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #X text 572 280 <- first?; #X obj 550 121 value $1.SSSAD.req; #X obj 550 220 select 0; #X obj 582 167 + 1; #X obj 582 190 value $1.SSSAD.req; #X obj 550 146 t a a; #X obj 550 242 f 1; #X connect 0 0 11 0; #X connect 2 0 1 0; #X connect 3 0 6 0; #X connect 5 0 4 0; #X connect 6 0 12 0; #X connect 7 0 5 0; #X connect 8 0 10 0; #X connect 9 0 2 0; #X connect 10 0 9 0; #X connect 11 0 2 0; #X connect 12 0 2 1; #X connect 12 0 13 0; #X connect 14 0 15 0; #X connect 15 0 16 0; #X connect 16 0 17 0; #X connect 18 0 22 0; #X connect 19 0 20 0; #X connect 20 0 14 0; #X connect 21 0 14 1; #X connect 22 0 19 0; #X connect 23 0 26 0; #X connect 26 0 30 0; #X connect 27 0 31 0; #X connect 28 0 29 0; #X connect 30 0 27 0; #X connect 30 1 28 0; #X connect 31 0 22 1; #X connect 31 0 24 0;