Wow!
Gem's just full of surprises!
Thanks Frank!
Jé
Frank Barknecht a écrit :
Hallo, Kyle Klipowicz hat gesagt: // Kyle Klipowicz wrote:
What I want to do is exactly show the data in an array of arbitrary size on a 2d surface, say a square or rectangle object. Is there a way to texture map the array data onto a geo object, so that it looks exactly like the array on the Pd canvas, but instead is in the gemwin?
I don't know how to do it with a texture, but attached is a version showing a little Gem idiom that's good to know anyway.
Ciao
#N canvas 569 115 662 519 10; #N canvas 162 153 305 311 count 0; #X obj 116 74 inlet; #X obj 116 160 f 0; #X obj 144 161 + 1; #X obj 116 188 outlet; #X obj 116 100 t f b; #X msg 159 136 0; #X obj 116 134 until; #X connect 0 0 4 0; #X connect 1 0 3 0; #X connect 1 0 2 0; #X connect 2 0 1 1; #X connect 4 0 6 0; #X connect 4 1 5 0; #X connect 5 0 1 1; #X connect 6 0 1 0; #X restore 104 204 pd count; #X obj 104 385 translateXYZ; #X obj 104 349 separator; #X obj 104 123 gemhead; #X obj 173 122 gemwin; #X msg 173 79 create , 1; #X msg 173 99 0 , destroy; #X obj 104 317 gemhead 45; #X floatatom 251 200 5 0 0 1 spread - -; #X obj 104 230 t b a a; #X obj 250 217 * 0.01; #X msg 104 181 128; #X obj 268 264 hsl 128 15 -4 4 0 0 empty empty left-right -2 -6 0 8 -262144 -1 -1 2200 1; #X obj 104 153 b; #X obj 213 307 * 0.05; #X msg 428 82 sinesum 128 1; #X floatatom 288 285 5 0 0 0 - - -; #X obj 213 330 + -3; #N canvas 0 0 450 300 graph2 0; #X array $0-y 131 float 2; #X coords 0 1 131 -1 200 140 1; #X restore 420 150 graph; #X obj 428 106 s $0-y; #X obj 296 310 tabread $0-y; #X obj 104 417 square 0.02; #X msg 427 58 cosinesum 128 0.2 0.2 0.5; #X obj 427 38 loadbang; #X connect 0 0 9 0; #X connect 1 0 21 0; #X connect 2 0 1 0; #X connect 3 0 13 0; #X connect 5 0 4 0; #X connect 6 0 4 0; #X connect 7 0 2 0; #X connect 8 0 10 0; #X connect 9 0 7 0; #X connect 9 1 14 0; #X connect 9 2 20 0; #X connect 10 0 14 1; #X connect 11 0 0 0; #X connect 12 0 16 0; #X connect 12 0 17 1; #X connect 13 0 11 0; #X connect 14 0 17 0; #X connect 15 0 19 0; #X connect 17 0 1 1; #X connect 20 0 1 2; #X connect 22 0 19 0; #X connect 23 0 22 0;
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list