Hallo, Chuckk Hubbard hat gesagt: // Chuckk Hubbard wrote:
Not sure I understand. I have 8 subpatches, which could as well be 8 abstractions, though I've set up a working system for now. Each of those subpatches is to be a free playground while working on any one piece. Each is for sending control messages to Csound for one of the 8 voices I may use in any one piece. For each piece, I will create a different patch; some will need [line] objects, some will need sliders, some will need toggles, etc. So when I load a piece into my sequencer, I want to have the 8 patches I created for that piece load automatically, and when I save the piece, I want the objects and messages in that subpatch to save to a separate file for the piece.
What I've done was, whenever saving a piece, sending "set #N canvas etc" to a textfile object, then saving it as the name of the piece plus number of instrument, then copying all the contents of each subpatch and pasting into that file, then [;pd-file.pd menuclose 1(. When I load, open the file, selectall, copy, close, open the subpatch, paste, editmode 0, vis 0. Works for me. Only annoyance is that it now tells me my sequencer has been edited and should be saved; since I'm pretty much done building the sequencer, I just remind myself not to save it (if I save the patch with an open piece, the list of notes makes the patch too big for Pd to open and when I open it again half the stuff is missing).
I would indeed use abstractions for this. They can be saved with Ctrl-S, which is easier than your subpatch saving, which seems overcomplicated to me. But of course to each his own. ;)
Frank