[PD] Question about Data Structures and passing pointers around...

Frank Barknecht fbar at footils.org
Tue Oct 3 21:03:22 CEST 2006


Hallo,
Mike McGonagle hat gesagt: // Mike McGonagle wrote:

> On 10/3/06, Frank Barknecht <fbar at footils.org> wrote:
> >Clearing the data window before saving is a way around this problem.
> >You can also save the data to an external file before closing the
> >patch and then restore from that file later. This seemed to happen
> >for example if you use structs with large arrays.
> 
> Is there a way to save the data directly from the subpatch? Or would
> the data need to be copied into a textfile object, and written from
> there?

You can save directly by sending "write filename.txt" to the
subpatch-receiver (like [write file(---[s pd-data]) and read back in
with a "read file" message.

> What I am trying to get at is it would be nice if it were possible to
> create this instance data, pass it to the objects that need that data,
> and then have it deleted from the subpatch once it is no longer
> required. I am working on creating some granular synthesis stuff, and
> as a result, there is a lot of data that gets generated. I found this
> out the hard way, as one of my patches (when I accidentally saved it)
> ended up being on the order of 18 megs, and this made me wonder if
> there is a limit that PD has while running in realtime.

The funny thing is, that running such a 18MB patch is no problem,
however opening it again after saving is a problem. Hopefully this can
be sorted out sometime. 

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__




More information about the Pd-list mailing list