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