[PD] Structures: get data dynamically

raul diaz raul.lete at gmail.com
Fri Dec 8 18:40:43 CET 2006


Hi list!

I'm taking a look at data structures.
In the attached patch I'm trying to select an init point and an end point
for a sample using an "init struct" and an "end struct".
I can select this init and end point with the mouse but then, I would like
to use this init and end point information for audio process.
I can obtain the init point or end point value by means of pointer & get,
but I would like to obtain this value dynamically, that means, to obtain the
value each time I change the init or end point.
How can I obtain this values dynamically? Somebody has any suggestion?
Thanks and regards!

Ciao.

-- 
Raul Diaz Poblete
*************************
raul.lete at gmail.com
Ciudad Real [Spain]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20061208/875d2ee5/attachment.htm>
-------------- next part --------------
#N struct init float x;
#N struct end float x;
#N canvas 763 425 349 222 10;
#X msg 141 42 next;
#X floatatom 126 123 5 0 0 0 - - -;
#X obj 126 69 pointer;
#X text 184 41 output next item;
#X text 122 139 x output;
#X obj 199 70 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 126 14 traverse pd-1_table;
#X obj 126 97 get init x;
#N canvas 763 25 484 283 1_table 1;
#X scalar init 8 \;;
#X scalar end 254 \;;
#N canvas 0 0 450 300 graph3 0;
#X array 1_sample 100 float 2;
#X coords 0 1 99 -1 396 196 1;
#X restore 32 32 graph;
#X restore 16 13 pd 1_table;
#N canvas 199 242 578 236 1_init 0;
#X obj 358 92 pointer;
#X obj 266 35 t b b;
#X msg 266 67 0;
#X obj 266 92 append init x;
#X obj 14 11 struct init float x;
#X msg 358 67 traverse pd-$1_table \, bang;
#X obj 14 46 drawpolygon 900 3 30 30 30 230;
#X obj 13 74 drawpolygon 900 3 29 30 39 30;
#X obj 13 102 drawpolygon 900 3 29 230 39 230;
#X obj 12 134 drawnumber x 6 10 900 init:;
#X obj 266 11 loadbang;
#X connect 0 0 3 1;
#X connect 1 0 2 0;
#X connect 1 1 5 0;
#X connect 2 0 3 0;
#X connect 5 0 0 0;
#X connect 10 0 1 0;
#X restore 15 39 pd 1_init;
#N canvas 197 535 562 215 1_end 0;
#X obj 358 92 pointer;
#X obj 276 91 append end x;
#X obj 276 34 t b b;
#X obj 14 11 struct end float x;
#X msg 358 67 traverse pd-$1_table \, bang;
#X obj 13 47 drawpolygon 900 3 30 30 30 230;
#X obj 13 74 drawpolygon 900 3 32 30 22 30;
#X obj 13 102 drawpolygon 900 3 32 230 22 230;
#X obj 12 134 drawnumber x 4 10 900 end:;
#X obj 276 10 loadbang;
#X msg 276 66 400;
#X connect 0 0 1 1;
#X connect 2 0 10 0;
#X connect 2 1 4 0;
#X connect 4 0 0 0;
#X connect 9 0 2 0;
#X connect 10 0 1 0;
#X restore 16 65 pd 1_end;
#X connect 0 0 2 0;
#X connect 2 0 7 0;
#X connect 2 1 5 0;
#X connect 6 0 2 0;
#X connect 7 0 1 0;


More information about the Pd-list mailing list