#N struct leaf float x float y;
#N canvas 0 19 910 539 10;
#N canvas 2 65 668 608 render 0;
#X obj 92 557 draw rect 0 0 300 300;
#X obj 53 47 struct leaf float x float y;
#X obj 417 116 draw path M 145 75 L 145 25;
#X obj 417 184 draw path M 180 84.3782 L 205 41.077;
#X obj 417 309 draw path M 215 145 L 265 145;
#X obj 417 374 draw path M 205.622 180 L 248.923 205;
#X obj 417 438 draw path M 180 205.622 L 205 248.923;
#X obj 417 508 draw path M 145 215 L 145 265;
#X obj 417 574 draw path M 110 205.622 L 85 248.923;
#X obj 417 638 draw path M 84.3782 180 L 41.077 205;
#X obj 417 703 draw path M 75 145 L 25 145;
#X obj 417 768 draw path M 84.3782 110 L 41.077 85;
#X obj 417 829 draw path M 110 84.3782 L 85 41.077;
#X obj 417 248 draw path M 205.622 110 L 248.923 85;
#X obj 121 92 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 121 134 f;
#X obj 161 134 + 1;
#X obj 121 158 % 12;
#X msg 416 785 stroke-opacity \$1;
#X obj 444 806 r init;
#X msg 416 725 stroke-opacity \$1;
#X obj 444 746 r init;
#X msg 29 594 stroke-width 25 \, stroke #ffffff \, stroke-linecap 1
;
#X obj 29 615 s init;
#X msg 416 660 stroke-opacity \$1;
#X obj 444 681 r init;
#X msg 416 595 stroke-opacity \$1;
#X obj 444 616 r init;
#X msg 416 530 stroke-opacity \$1;
#X obj 444 551 r init;
#X msg 416 460 stroke-opacity \$1;
#X obj 444 481 r init;
#X msg 416 395 stroke-opacity \$1;
#X obj 444 416 r init;
#X msg 416 330 stroke-opacity \$1;
#X obj 444 351 r init;
#X msg 416 270 stroke-opacity \$1;
#X obj 444 291 r init;
#X msg 416 205 stroke-opacity \$1;
#X obj 444 226 r init;
#X msg 416 142 stroke-opacity \$1;
#X obj 444 163 r init;
#X msg 416 72 stroke-opacity \$1;
#X obj 444 93 r init;
#X msg 121 179 12 \$1;
#X obj 121 200 -;
#X obj 231 107 expr ($f1 + 2)%12/12 \; ($f1 + 1)%12/12 \; $f1%12/12
;
#X obj 122 259 expr ($f1 + 11)%12/12 \; ($f1 + 10)%12/12 \; ($f1 +
9)%12/12 \; ($f1 + 8)%12/12 \; ($f1 + 7)%12/12 \; ($f1 + 6)%12/12 \;
($f1 + 5)%12/12 \; ($f1 + 4)%12/12 \; ($f1 + 3)%12/12;
#X obj 121 113 metro 100;
#X obj 92 496 loadbang;
#X obj 34 81 r animation;
#X obj 61 417 bang;
#X msg 92 520 fill #333333 \, stroke #333333 \, fill-opacity 0.6 \,
stroke-opacity 0.6 \, rx 30 \, ry 30;
#X connect 14 0 48 0;
#X connect 15 0 16 0;
#X connect 15 0 17 0;
#X connect 16 0 15 1;
#X connect 17 0 44 0;
#X connect 18 0 12 0;
#X connect 19 0 12 0;
#X connect 20 0 11 0;
#X connect 21 0 11 0;
#X connect 22 0 23 0;
#X connect 24 0 10 0;
#X connect 25 0 10 0;
#X connect 26 0 9 0;
#X connect 27 0 9 0;
#X connect 28 0 8 0;
#X connect 29 0 8 0;
#X connect 30 0 7 0;
#X connect 31 0 7 0;
#X connect 32 0 6 0;
#X connect 33 0 6 0;
#X connect 34 0 5 0;
#X connect 35 0 5 0;
#X connect 36 0 4 0;
#X connect 37 0 4 0;
#X connect 38 0 13 0;
#X connect 39 0 13 0;
#X connect 40 0 3 0;
#X connect 41 0 3 0;
#X connect 42 0 2 0;
#X connect 43 0 2 0;
#X connect 44 0 45 0;
#X connect 45 0 46 0;
#X connect 45 0 47 0;
#X connect 46 0 38 0;
#X connect 46 1 40 0;
#X connect 46 2 42 0;
#X connect 47 0 18 0;
#X connect 47 1 20 0;
#X connect 47 2 24 0;
#X connect 47 3 26 0;
#X connect 47 4 28 0;
#X connect 47 5 30 0;
#X connect 47 6 32 0;
#X connect 47 7 34 0;
#X connect 47 8 36 0;
#X connect 48 0 15 0;
#X connect 49 0 52 0;
#X connect 49 0 22 0;
#X connect 50 0 14 0;
#X connect 50 0 51 0;
#X connect 51 0 52 0;
#X connect 52 0 0 0;
#X restore 104 64 pd render;
#X scalar leaf 1000 1000 \;;
#X obj 528 399 bng 56 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#N canvas 856 281 450 384 make-sound 0;
#X msg 286 73 traverse spinner \, next;
#X obj 286 94 pointer;
#X obj 233 219 set leaf x y;
#X obj 99 21 inlet;
#X msg 181 137 410 250;
#X obj 119 133 del 3000;
#X msg 119 154 1000 1000;
#X msg 229 163 1;
#X obj 229 184 s animation;
#X msg 101 187 0;
#X obj 101 208 s animation;
#X msg 69 231 1 50;
#X obj 69 252 line~;
#X obj 99 42 t b b b;
#X msg 28 232 0 50;
#X obj 43 362 outlet~;
#X obj 135 269 phasor~ 150;
#X obj 110 302 *~;
#X obj 43 333 *~ 0.3;
#X obj 33 170 del 400;
#X obj 28 211 del 500;
#X connect 0 0 1 0;
#X connect 1 0 2 2;
#X connect 3 0 13 0;
#X connect 4 0 2 0;
#X connect 4 0 7 0;
#X connect 5 0 6 0;
#X connect 5 0 19 0;
#X connect 6 0 2 0;
#X connect 6 0 9 0;
#X connect 7 0 8 0;
#X connect 9 0 10 0;
#X connect 11 0 12 0;
#X connect 12 0 17 0;
#X connect 13 1 4 0;
#X connect 13 1 5 0;
#X connect 13 2 0 0;
#X connect 14 0 12 0;
#X connect 16 0 17 1;
#X connect 17 0 18 0;
#X connect 18 0 15 0;
#X connect 19 0 11 0;
#X connect 19 0 20 0;
#X connect 20 0 14 0;
#X restore 528 460 pd make-sound;
#X obj 104 87 namecanvas spinner;
#X obj 528 501 output~;
#X text 343 116 Waiting for Godot;
#X text 343 116 _________________;
#X text 343 136 This is another demo inspired by a Raphael.js demo.
It's just the little spinner that's all the rave in HTML5 interfaces.
;
#X text 343 236 Additionally \, I did the animation with "struct-wide"
changes to the drawing instructions. You can also use a separate scalar
for each pedal of the spinner flower \, but then you lose the ability
to move it as one entity.;
#X text 343 176 Notice \, however \, that in Pd the concept is as absurd
as this example demo. Pd's control diagrams are deterministic \, so
unless you actually schedule time for the spinner to spin-- as I do
here-- you'll never actually get any animation.;
#X connect 2 0 3 0;
#X connect 3 0 5 0;
#X connect 3 0 5 1;
