[PD] lists and arrays

Orm Finnendahl finnendahl at folkwang-hochschule.de
Sun May 26 17:22:46 CEST 2002


Hi Olaf,

below is another way it could be done. it needs the drip object of
zexy. The advantages: you don't have to know the number of elements in
the list in advance and you can put it at any location in tables of
arbitrary sizes.


--
Orm


#N canvas 0 0 450 300 10;
#X obj 171 66 drip;
#X msg 209 66 0;
#X obj 171 38 t a b;
#X obj 196 122 f;
#X text 240 66 starting table-position;
#X obj 235 123 + 1;
#X text 262 122 counting loop;
#N canvas 0 0 450 300 graph1 0;
#X array array1 10 float 1;
#A 0 0 0 0 0 0 0 0 0 0 0;
#X coords 0 10 9 -10 200 140 1;
#X restore 243 156 graph;
#X obj 135 156 tabwrite array1;
#X msg 176 4 3 1 4 2 5;
#X msg 258 5 2 -3 5;
#X obj 171 89 t f b;
#X msg 75 4 0 0 0 0 0 0 0 0;
#X connect 0 0 11 0;
#X connect 1 0 3 1;
#X connect 2 0 0 0;
#X connect 2 1 1 0;
#X connect 3 0 5 0;
#X connect 3 0 8 1;
#X connect 5 0 3 1;
#X connect 9 0 2 0;
#X connect 10 0 2 0;
#X connect 11 0 8 0;
#X connect 11 1 3 0;
#X connect 12 0 2 0;


Am Sonntag, den 26. Mai 2002 um 00:51:55 Uhr (+0200) schrieb sme:
> hi,
> you can resize the array to the number of values and use "tabset" from zexy.
> sÜme.
> 
> ----- Original Message -----
> From: "Olaf Matthes" <olaf.matthes at gmx.de>
> To: "pd-list" <pd-list at iem.kug.ac.at>
> Sent: Sunday, May 26, 2002 12:43 AM
> Subject: [PD] lists and arrays
> 
> 
> > Hi all,
> >
> > I've got a question concerning how to get a list into an array.
> >
> > I use an object which outputs a list of values (floats) and on a second
> > outlet the number of values. Now I'd like to write the values into an
> > array.
> >
> > Using tabread seems not to work. A message like [;array99 0 $1] would
> > set only one value but I want to set a variable number of values....
> > (thus I would need a variable number of $1 ... $n).
> >
> > Any ideas?
> >
> > Olaf
> >
> >
> >
> 
> 



More information about the Pd-list mailing list