[PD] copying one array to another very fast

Martin Schied crinimal at gmx.net
Fri Nov 13 11:18:39 CET 2009


Stephen Lucas wrote:
> I should have also added that I'm only using this functionality for 
> relatively small arrays (500 values), and haven't tried using it for 
> arrays which may be holding longish audio samples.
>  
> -Stephen
>
> On Thu, Nov 12, 2009 at 11:56 PM, Stephen Lucas <s9lucas at gmail.com 
> <mailto:s9lucas at gmail.com>> wrote:
>
>     Just putting in my 2cents, but I've been using the bonus feature
>     of being able to write an array's contents to a text file with a
>     message and then read it back out to a different array with
>     another message.
>

you could use soundfiler too using this approach. but it also has to 
allocate memory twice...
i used this approach to exchange relatively big arrays (more than 50,000 
values) between two instances of pd, using /dev/shm (or any ramdrive) 
which worked fine.

cheers,
Martin




More information about the Pd-list mailing list