[PD] copy data between arrays

Benjamin Wesch benjamin.wesch at gmail.com
Tue Apr 23 10:38:38 CEST 2024


hi,

to avoid confusion here: the "clipboard" in this case is actually a file.
it certainly works to write and read arrays to/from disk like that (as
documented in "other-messages" subpatch of the [array define] help) -
but this is not a RAM copy/paste as it might seem. :)

cheers,
ben

Am Di., 23. Apr. 2024 um 10:29 Uhr schrieb Peter P. <peterparker at fastmail.com>:
>
> Thanks for this hint Oliver!
>
> Can't test right now but am curious if audio drops out (eg. playing a
> sine test tone while copying some 10secs of table data) and if there is
> any (dis)advantages over the get/set method below.
>
> cheersz, P
>
> * oliver at klingt.org <oliver at klingt.org> [2024-04-23 10:22]:
> > Also just found out by chance that writing and reading to/from clipboard also works !
> >
> > [write clipboard(
> > |
> > [array define a1]
> >
> >
> > [read clipboard(
> > |
> > [array define a2]
> >
> > Can you confirm this ?
> >
> > Best
> >
> > Oliver
> >
> >
> >
> >
> >
> > Am 23. April 2024 10:15:00 MESZ schrieb "Peter P." <peterparker at fastmail.com>:
> > >Replying to myself here, after this solution has been suggested to me
> > >off-list:
> > >
> > >[bang(
> > >|
> > >[array get one]
> > >|
> > >[array set two]
> > >
> > >seems to work for larger tables without audio dropouts.
> > >
> > >Much appreciated help, thanks!
> > >P
> > >
> > >* Peter P. <peterparker at fastmail.com> [2024-04-23 08:54]:
> > >> Hi list,
> > >>
> > >> I am sure this has been asked many times, but I can't find a solution in
> > >> the mailing list archive. How can I copy data between arrays, in my case
> > >> arrays of 480000 samples without using externals and without blocking
> > >> the DSP computation (causing dropouts)?
> > >> I know that I can write to disk and read from it again, but is there a
> > >> way that does not require disk access?
> > >>
> > >> Thanks for all ideas!
> > >> Peter
> > >
> > >
> > >
> > >_______________________________________________
> > >Pd-list at lists.iem.at mailing list
> > >UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
> > >
> >
> > --
> >
> > Gesendet von meinem Endgerät
> >
>
> > _______________________________________________
> > Pd-list at lists.iem.at mailing list
> > UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list