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.pd | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 examples/petal.pd (limited to 'examples/petal.pd') diff --git a/examples/petal.pd b/examples/petal.pd new file mode 100644 index 0000000..eaf0960 --- /dev/null +++ b/examples/petal.pd @@ -0,0 +1,67 @@ +#N canvas 602 416 942 484 10; +#X obj 99 196 separator; +#X obj 99 429 circle; +#X obj 522 239 * 360; +#X obj 99 312 rotateXYZ 0 0 0; +#X obj 522 190 t b f; +#X obj 39 35 inlet; +#X obj 32 455 outlet; +#X obj 99 340 translateXYZ 1 0 0; +#X obj 424 310 * 1; +#X obj 592 262 t b f; +#X obj 522 218 / 1; +#X obj 424 247 <= 0; +#X text 82 458 this object just ignores triggers; +#X text 483 130 \$1 is this objects index \, we use it to work out +if we need to render; +#X text 14 73 draw a petal (really just a circle)..; +#X text 460 246 if we aren't needed \, scale ourselves to 0 is there +a better way? email me.; +#X obj 99 368 scaleXYZ 1; +#X obj 522 33 inlet; +#X obj 347 455 outlet; +#X text 82 34 we connect to the global gemhead; +#X obj 522 89 unpack float float float; +#X text 683 87 petal# petalsize petalradius; +#X obj 427 144 float \$1; +#X obj 427 120 loadbang; +#X obj 99 284 colorRGB 0.5 0 1; +#X obj 168 245 % 8; +#X obj 168 264 / 7; +#X obj 522 58 route list; +#X obj 285 108 route draw; +#X obj 280 381 list prepend draw; +#X obj 280 401 list trim; +#X connect 0 0 24 0; +#X connect 2 0 3 3; +#X connect 3 0 7 0; +#X connect 4 0 10 0; +#X connect 4 0 11 0; +#X connect 4 1 10 1; +#X connect 4 1 11 1; +#X connect 5 0 0 0; +#X connect 7 0 16 0; +#X connect 8 0 16 1; +#X connect 8 0 16 2; +#X connect 8 0 16 3; +#X connect 9 0 8 0; +#X connect 9 1 8 1; +#X connect 10 0 2 0; +#X connect 11 0 8 0; +#X connect 16 0 1 0; +#X connect 17 0 27 0; +#X connect 20 0 4 0; +#X connect 20 1 9 0; +#X connect 20 2 7 1; +#X connect 22 0 11 0; +#X connect 22 0 10 0; +#X connect 22 0 25 0; +#X connect 23 0 22 0; +#X connect 24 0 3 0; +#X connect 25 0 26 0; +#X connect 26 0 24 3; +#X connect 27 0 20 0; +#X connect 27 1 28 0; +#X connect 28 0 29 0; +#X connect 29 0 30 0; +#X connect 30 0 1 0; -- cgit v1.2.1