From 4335ef21f6d89d39b88b9b911f78ea0ee4a23912 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 28 Nov 2010 05:58:32 +0000 Subject: converted [bundle] back to giving instance# and instance_count, and made example for it svn path=/trunk/externals/many/; revision=14533 --- examples/petal-test.pd | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 examples/petal-test.pd (limited to 'examples/petal-test.pd') diff --git a/examples/petal-test.pd b/examples/petal-test.pd new file mode 100644 index 0000000..710eee3 --- /dev/null +++ b/examples/petal-test.pd @@ -0,0 +1,68 @@ +#N canvas 562 93 676 425 10; +#X declare -path /Users/hans/code/pure-data/trunk/externals/many/examples +; +#X obj 579 71 gemwin; +#X obj 574 22 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 +; +#X obj 128 337 gemhead; +#X obj 227 215 line; +#X msg 227 195 \$1 1000; +#X msg 221 161 21; +#X msg 247 161 13; +#X msg 277 161 8; +#X text 281 366 make 35 petal objects waiting for commands; +#X text 415 152 radius of the flower; +#X text 333 131 radius of the petals; +#X text 167 141 number of petals; +#N canvas 0 22 450 300 pak 0; +#X obj 107 37 inlet; +#X obj 209 35 inlet; +#X obj 209 57 t b a; +#X obj 107 122 pack 0 0 0; +#X obj 107 158 outlet; +#X obj 149 35 inlet; +#X obj 149 57 t b a; +#X connect 0 0 3 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 2 1 3 2; +#X connect 3 0 4 0; +#X connect 5 0 6 0; +#X connect 6 0 3 0; +#X connect 6 1 3 1; +#X restore 316 241 pd pak; +#X obj 320 144 vsl 15 60 0 2 0 1 empty empty empty 0 -9 0 10 -261682 +-1 -1 5500 0; +#X floatatom 321 211 5 0 0 0 - - -; +#X obj 397 157 vsl 15 60 0 4 0 1 empty empty empty 0 -9 0 10 -203904 +-1 -1 3300 0; +#X floatatom 398 224 5 0 0 0 - - -; +#X text 127 25 draw a shape using many instances and a little math +; +#X msg 586 41 create \, 1; +#X msg 192 161 40; +#X msg 194 296 draw fill; +#X msg 215 317 draw line; +#X msg 175 277 draw point; +#X obj 175 255 loadbang; +#X obj 128 364 many/bundle 250 petal; +#X msg 153 161 250; +#X connect 1 0 0 0; +#X connect 2 0 24 0; +#X connect 3 0 12 0; +#X connect 4 0 3 0; +#X connect 5 0 4 0; +#X connect 6 0 4 0; +#X connect 7 0 4 0; +#X connect 12 0 24 1; +#X connect 13 0 14 0; +#X connect 14 0 12 1; +#X connect 15 0 16 0; +#X connect 16 0 12 2; +#X connect 18 0 0 0; +#X connect 19 0 4 0; +#X connect 20 0 24 1; +#X connect 21 0 24 1; +#X connect 22 0 24 1; +#X connect 23 0 22 0; +#X connect 25 0 4 0; -- cgit v1.2.1