[PD] dynamic etern/subpatch instantiation?

Miller Puckette mpuckett at man104-1.ucsd.edu
Wed Dec 19 22:34:08 CET 2001


An easier way than self-modifying patches migth be to open a top-level
patch by message passing.  For instance if you have a patch, /tmp/x.pd, here's
a patch to open and close it:

#N canvas 453 249 450 300 10;
#X msg 43 82 \; pd-x.pd menuclose;
#X msg 45 35 \; pd open x.pd /tmp;

cheers
Miller

On Wed, Dec 19, 2001 at 10:55:52AM -0800, Josh Steiner wrote:
> Hey folks, I've been trying to figure out how one would dynamically
> instantiate an extern or subpatch in pd and havn't had any luck so far.  
> basically, i'd like to design a state machine based patch and have it able
> to dynamically load which subpatches are being played depending on what
> state it is in, most likely from a text file.  Any tips or general clues
> would be greatly appriciated, thanks!
> 
> ________________________________________________________________
> Josh .. Yoshi .. Joschi .. xiphoidprocess.com .. eds.org/~joschi
> 



More information about the Pd-list mailing list