Federico wrote:
however this can't be packed into an abstraction (only a subpatch will do), and not even into a GOP abstraction, because Vslider it's too narrow.
why does it not work with abstractions? i see zero reasons,
because:
[f] | [set $1( | [...( <- this is the "memory unit"
will only be saved in a (sub)patch. this can't live in an abstraction, as hitting "save" on the main patch in fact does nothing to this "memory"
well, not entirely true. you can make your abstraction save things when you save the main patch.
attached is a little example which might give you the idea. the patch to open is MAIN.pd. it has only been tested on linux, and it might as well not work on win32 and os-x, but the idea should be portable nevertheless.
mfg-.cas.dr IOhannes
PS: somehow i think this is a nice tipp or trick or tick.
#N canvas 0 0 412 298 10; #X obj 119 169 QuitOnSave; #X text 58 74 save this patch using Ctrl-S; #X text 41 96 (you might need to try several times);
#N canvas 531 169 450 346 10; #X obj 219 75 loadbang; #X msg 219 96 19; #X obj 219 117 makefilename %c; #X obj 128 144 select symol; #X obj 77 80 keyname; #X obj 128 167 b; #X msg 128 191 ; pd quit; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 2 0 3 1; #X connect 3 0 5 0; #X connect 4 1 3 0; #X connect 5 0 6 0;