[PD] table copy

Krzysztof Czaja czaja at chopin.edu.pl
Sun Feb 3 15:00:55 CET 2002


hi,

using control objects (tabread/tabwrite pair) should be faster:

#X msg 20 20 <size>;
#X obj 20 50 until;
#X obj 20 80 int;
#X obj 80 80 + 1;
#X obj 20 110 t 0 0;
#X obj 20 140 tabread t1;
#X obj 20 170 tabwrite t2;
#X obj 200 20 table t1;
#X obj 200 50 table t2;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 4 0;
#X connect 2 0 3 0;
#X connect 3 0 2 1;
#X connect 4 0 5 0;
#X connect 4 1 6 1;
#X connect 5 0 6 0;

The fastest is to make an external: calling
source = pd_findbyclass(<name>, garray_class), then
garray_getfloatarray(source, &ssize, &sdata), then
same for a destination, and finally calling memcpy()
and garray_redraw(destination).

Krzysztof

leonard at swiezinski.de wrote:
...
> is there any clever way to copy the content
> of one table to another, faster than:
> 
> tabplay~
>  |
> tabwrite~



More information about the Pd-list mailing list