[PD] Simple memory in patches

Alexandre Quessy listes at sourcelibre.com
Tue Jul 4 02:04:13 CEST 2006


Here is a little trick using sub-patches, not abstractions, to keep values
in memory when you close your patch and open it again. Just save your patch
and the values are saved with it.

Enjoy !

-- 
Alexandre Quessy
http://alexandre.quessy.net



#N canvas 0 0 626 522 10;
#N canvas 0 0 450 300 memory 0;
#X obj 136 94 inlet;
#X obj 264 103 loadbang;
#X msg 136 153 set \$1;
#X msg 145 198 38;
#X obj 146 255 outlet;
#X connect 0 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X restore 165 99 pd memory;
#X obj 85 29 vsl 15 128 0 127 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 3800 1;
#X text 147 148 Change the value. Save the patch. Close it. Open it
again with pd.;
#X text 58 350 )c( Alexandre Quessy;
#X text 162 64 Simple memory;
#X text 144 268 The value will be saved and restored when you open
your patch again. Is as to be in subpatches \, not abstractions. Otherwise
\, it would not be saved at all.;
#X text 56 375 2006-07-04;
#X connect 0 0 1 0;
#X connect 1 0 0 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060703/c55fd95f/attachment.htm>


More information about the Pd-list mailing list