[PD] state object

IOhannes m zmoelnig zmoelnig at iem.at
Wed Jul 5 15:13:22 CEST 2006


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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MAIN.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060705/ded9bb39/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: QuitOnSave.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060705/ded9bb39/attachment.txt>


More information about the Pd-list mailing list