[PD] loadbang for externals
mpuckett at man104-1.ucsd.edu
Fri Feb 22 18:29:15 CET 2002
Hmm, ".._new()" is only called when an object is instantiated. If you
save, close, then re-open a patch, the new() routine has to get called again
fo rthe new instantiation, but as long as you keep the patch open, you should
be able to save it all you wish.
There is a problem in that Pd doesn't warn objects properly when they're
getting freed... the free() routine gets called right before the object
is destroyed adn you don't have a chance to open a save() dialog if you
want to save internal state separately. I want to fix that for a future
On Fri, Feb 22, 2002 at 05:42:42PM +0100, Frank Barknecht wrote:
> Miller Puckette hat gesagt: // Miller Puckette wrote:
> > Actions to be taken on object creation can be put in the "new" routine.
> > However, perhaps there are examples of actions that should be taken for
> > all new objects, but, if it's being restored from a file, should only happen
> > once the object is fully connected and the rest of the patch is intact.
> I have a question regarding this: At which times is the new-routine
> called? I'm asking, because in my rx7~ external, I can load a sound
> bank with a "load" message. If I then save the whole patch, the loaded
> bank disapears and has to be loaded again. I suspect, that "..._new" is
> called again, when the patch gets saved. Is this correct?
> If yes, I'll have to take precautions to keep the bank alive...
> __ __
> Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
> / __// __ /__/ __// // __ \ \/ / __ \\ ___\
> / / / ____/ / / / // ____// /\ \\ ___\\____ \
> /_/ /_____/ /_/ /_//_____// / \ \\_____\\_____\
> /_/ \_\
More information about the Pd-list