im sure this is fairly obvious but i never tried to do this before and im a bit lost: how can i save the contents of an array to a text file, so that i can use them again later? i rather load txt files in a table than have several tables because im assuming that will be less cpu intensive. ami right?
p
On Tue, Jun 10, 2008 at 9:01 AM, potax flan potaxpotax@gmail.com wrote:
how can i save the contents of an array to a text file, so that i can use them again later?
send the array a message like [;arrayname write /path/to/file( (see doc/2.control.exmples/15.array.pd)
i rather load txt files in a table than have several tables because im assuming that will be less cpu intensive. ami right?
Having many arrays does not affect CPU usage but memory consumption.
./MiS
Michal Seta wrote:
i rather load txt files in a table than have several tables because im assuming that will be less cpu intensive. ami right?
Having many arrays does not affect CPU usage but memory consumption.
In fact, loading files to arrays uses the CPU, while storing them in arrays does not. Loading large files (i.e. soundfiles) into arrays can also cause audio interruptions. So better to load everything into arrays ahead of time.
best, d.
[ write write file.txt arrayname ( | [s pd arrayname]
Take a look at 2.contol.examples/15.array.pd
-rich
On Tue, Jun 10, 2008 at 6:01 AM, potax flan potaxpotax@gmail.com wrote:
im sure this is fairly obvious but i never tried to do this before and im a bit lost: how can i save the contents of an array to a text file, so that i can use them again later? i rather load txt files in a table than have several tables because im assuming that will be less cpu intensive. ami right?
p _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi, have a look in the explanation in 2.control_examples/15.array.pd. you just send a message with the message [write filename.txt( | [s array1] where filename is the name of the file that should be written (does not need a "txt" extension, but makes it easier if you want to look at the data with a text editor...). and array1 is the name of the array that you want to save. marius.
potax flan wrote:
im sure this is fairly obvious but i never tried to do this before and im a bit lost: how can i save the contents of an array to a text file, so that i can use them again later? i rather load txt files in a table than have several tables because im assuming that will be less cpu intensive. ami right?
p
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list