Commit 333f6061 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

new docs for new structure features

parent 6a77d1af
#N struct peak-template float x float y float amp float ampreal float
ampimag;
#N canvas 427 19 448 552 10;
#X msg 211 385 bang;
#X obj 21 390 pack 0 100;
#X obj 21 414 line~;
#X obj 21 366 dbtorms;
#N canvas 95 102 724 400 fft 0;
#X obj 64 67 inlet~;
#X obj 134 107 print~;
#X msg 137 71 bang;
#X obj 64 104 rfft~;
#N canvas 0 0 450 300 (subpatch) 0;
#X array array3 4096 float 0;
#X coords 0 100 4096 -100 400 150 1;
#X restore 254 14 graph;
#N canvas 0 0 450 300 (subpatch) 0;
#X array array4 4096 float 0;
#X coords 0 100 4096 -100 400 150 1;
#X restore 256 165 graph;
#X obj 9 185 tabsend~ array3;
#X obj 50 158 tabsend~ array4;
#X msg 37 246 \; array3 resize 4096 \; array4 resize 4096;
#X obj 62 38 block~ 4096 1;
#X connect 0 0 1 0;
#X connect 0 0 3 0;
#X connect 2 0 1 0;
#X connect 3 0 6 0;
#X connect 3 1 7 0;
#X restore 81 436 pd fft;
#X obj 21 438 *~;
#X obj 186 361 adc~;
#N canvas 204 36 521 368 analysis 0;
#X obj 206 37 inlet;
#X msg 207 68 bang;
#X obj 275 52 r snapshot;
#X msg 220 169 4096 array3 array4 50;
#X obj 127 252 print;
#X obj 206 103 t b b b;
#X obj 122 140 s done-analysis;
#X obj 248 133 s start-analysis;
#X obj 220 219 s found-peak;
#X obj 154 194 r loud;
#X obj 128 226 spigot;
#X obj 220 193 pique;
#X connect 0 0 1 0;
#X connect 1 0 5 0;
#X connect 2 0 1 0;
#X connect 3 0 11 0;
#X connect 5 0 6 0;
#X connect 5 1 3 0;
#X connect 5 2 7 0;
#X connect 9 0 10 1;
#X connect 10 0 4 0;
#X connect 11 0 8 0;
#X connect 11 0 10 0;
#X restore 296 409 pd analysis;
#X obj 21 343 r loop-amp;
#X msg 296 385 snapshot;
#X text 19 142 click here first;
#X text 296 361 analysis;
#N canvas 36 255 884 389 peak-saver 0;
#X floatatom 710 310 0 0 0 0 - - -;
#X floatatom 633 309 0 0 0 0 - - -;
#X floatatom 560 305 0 0 0 0 - - -;
#X floatatom 484 303 0 0 0 0 - - -;
#X obj 406 251 pointer;
#X obj 354 150 pointer;
#X msg 374 60 bang;
#X obj 142 243 rmstodb;
#X obj 10 244 * 0.1;
#X obj 141 268 * -3;
#X floatatom 416 300 0 0 0 0 - - -;
#X obj 353 36 r start-analysis;
#X obj 354 89 t b b;
#X msg 29 89 50 60 70;
#X obj 28 120 append peak-template x y amp;
#X msg 426 225 next;
#X obj 402 276 get peak-template x y amp ampreal ampimag;
#X obj 9 293 append peak-template x y amp ampreal ampimag;
#X obj 116 167 r found-peak;
#X obj 117 196 unpack 0 0 0 0 0;
#X msg 76 244 330;
#X msg 400 87 \; pd-peak-list clear;
#X msg 354 125 traverse pd-peak-list \, bang;
#X msg 408 201 traverse pd-peak-list \, next;
#X connect 4 0 16 0;
#X connect 5 0 14 3;
#X connect 5 0 17 5;
#X connect 6 0 12 0;
#X connect 7 0 9 0;
#X connect 8 0 17 0;
#X connect 9 0 17 2;
#X connect 11 0 12 0;
#X connect 12 0 22 0;
#X connect 12 1 21 0;
#X connect 13 0 14 0;
#X connect 15 0 4 0;
#X connect 16 0 10 0;
#X connect 16 1 3 0;
#X connect 16 2 2 0;
#X connect 16 3 1 0;
#X connect 16 4 0 0;
#X connect 18 0 19 0;
#X connect 19 1 8 0;
#X connect 19 2 20 0;
#X connect 19 2 7 0;
#X connect 19 3 17 3;
#X connect 19 4 17 4;
#X connect 20 0 17 1;
#X connect 22 0 5 0;
#X connect 23 0 4 0;
#X restore 309 201 pd peak-saver;
#N canvas 231 169 656 237 peak-template 0;
#X obj 45 90 filledpolygon 3 3 3 0 0 0 amp 0 0;
#X obj 37 16 struct peak-template float x float y float amp float ampreal
float ampimag;
#X restore 309 223 pd peak-template;
#N canvas 0 0 600 382 peak-list 0;
#X scalar peak-template 6.52298 330 -195.561 0.0125191 -0.0131689 \;
;
#X scalar peak-template 13.0656 330 -262.841 0.222392 0.0909196 \;
;
#X scalar peak-template 26.2816 330 -188.229 0.0133818 0.00299871 \;
;
#X scalar peak-template 34.1579 330 -182.784 -0.0111106 0.000616574
\;;
#X scalar peak-template 39.2398 330 -192.587 0.00649353 -0.0148522
\;;
#X scalar peak-template 54.2567 330 -169.462 -0.00637704 0.00196744
\;;
#X scalar peak-template 64.6374 330 -153.343 -0.00231745 -0.00274854
\;;
#X scalar peak-template 70.731 330 -228.984 -0.0391646 -0.0525299 \;
;
#X scalar peak-template 83.4018 330 -157.354 0.00213705 0.00360794
\;;
#X scalar peak-template 89.0428 330 -164.547 0.00509053 0.00215158
\;;
#X scalar peak-template 96.8527 330 -127.029 0.00018868 -0.00129597
\;;
#X scalar peak-template 108.145 330 -206.524 -0.0244265 0.0130057 \;
;
#X scalar peak-template 119.672 330 -139.871 0.000310867 0.00212115
\;;
#X scalar peak-template 129.195 330 -154.988 0.00101519 -0.00369247
\;;
#X scalar peak-template 148.144 330 -131.59 -0.000488336 0.00148172
\;;
#X scalar peak-template 156.394 330 -157.846 0.00107442 -0.00413614
\;;
#X scalar peak-template 168.637 330 -126.924 0.0001938 -0.00128991
\;;
#X scalar peak-template 189.884 330 -119.499 0.000252664 -0.000947853
\;;
#X scalar peak-template 211.047 330 -130.949 0.000525129 0.0014288
\;;
#X restore 309 245 pd peak-list;
#X msg 34 167 \; pd dsp 1;
#X obj 377 409 s loud;
#X text 185 341 live sample;
#X text 374 347 print out;
#X text 374 362 peak list;
#X text 19 36 This patch reads a soundfile or records a live sound.
When you click on "snapshot" the peak-list window shows a list of the
sinusoidal peaks that were found at that instant in the sound. You
can also ask for the peak lists to be printed out.;
#N canvas 132 255 634 331 insample 0;
#N canvas 0 0 450 300 (subpatch) 0;
#X array sample 155948 float 0;
#X coords 0 1 155947 -1 400 150 1;
#X restore 199 18 graph;
#X obj 19 70 r read-sample;
#X obj 19 95 unpack s f;
#X obj 53 121 s insamprate;
#X obj 19 171 soundfiler;
#X msg 19 147 read -resize \$1 sample;
#X obj 19 201 s insamplength;
#X msg 357 197 \; sample resize 220500 \; insamplength 220500;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X connect 2 1 3 0;
#X connect 4 0 6 0;
#X connect 5 0 4 0;
#X restore 309 179 pd insample;
#N canvas 186 103 405 461 test-signal 0;
#X obj 135 296 tabread4~ sample;
#X obj 135 271 line~;
#X obj 95 146 f;
#X obj 254 46 r insamprate;
#X obj 135 415 outlet~;
#X obj 146 33 r insamplength;
#X msg 134 247 0 \, \$1 \$2;
#X obj 134 221 pack 0 0;
#X obj 209 190 /;
#X obj 299 99 * 0.001;
#X obj 135 388 hip~ 5;
#X obj 33 5 loadbang;
#X text 242 13 sample playback;
#X msg 33 25 1;
#X obj 33 69 metro 1000;
#X floatatom 33 48 0 0 0 0 - - -;
#X obj 255 75 t b b f;
#X obj 161 84 t b f;
#X connect 0 0 10 0;
#X connect 1 0 0 0;
#X connect 2 0 7 0;
#X connect 3 0 16 0;
#X connect 5 0 17 0;
#X connect 6 0 1 0;
#X connect 7 0 6 0;
#X connect 8 0 7 1;
#X connect 8 0 14 1;
#X connect 9 0 8 1;
#X connect 10 0 4 0;
#X connect 11 0 13 0;
#X connect 13 0 15 0;
#X connect 14 0 2 0;
#X connect 15 0 14 0;
#X connect 16 0 13 0;
#X connect 16 1 8 0;
#X connect 16 2 9 0;
#X connect 17 0 13 0;
#X connect 17 1 8 0;
#X connect 17 1 2 1;
#X restore 81 413 pd test-signal;
#X text 92 343 amplitude;
#X text 110 199 read a sample;
#X msg 34 218 \; read-sample ../sound/bell.aiff 44100;
#X text 18 100 The active ingredient is "pique" in the "analysis" subwindow
\, which is in the "extras" directory in the Pd release.;
#X msg 34 255 \; read-sample ../sound/voice.wav 32000;
#X obj 187 409 tabwrite~ sample;
#X obj 377 387 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 34 293 \; read-sample ../sound/voice2.wav;
#X obj 20 465 output~;
#X obj 1 1 cnv 15 445 20 empty \$0-pddp.cnv.header spectral_snapshots
20 10 1 18 -261139 -33289 0;
#X obj 407 2 pddp/pddplink http://puredata.info/dev/pddp -text pddp
;
#X obj 1 530 cnv 15 445 20 empty \$0-pddp.cnv.footer empty 20 12 0
14 -233017 -33289 0;
#N canvas 44 246 494 284 META 0;
#X text 12 125 WEBSITE http://crca.ucsd.edu/~msp/;
#X text 12 105 AUTHOR Miller Puckette;
#X text 12 85 LIBRARY PDDP;
#X text 12 5 GENRE tutorial;
#X text 12 45 LICENSE SIBSD;
#X text 12 145 HELP_PATCH_AUTHORS Jonathan Wilkes revised the patch
to conform to the PDDP template for Pd version 0.42.;
#X text 12 25 KEYWORDS data_structure;
#X text 12 65 DESCRIPTION spectral snapshots;
#X restore 392 532 pd META;
#N canvas 13 202 428 190 References 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -261139 -33289 0;
#X text 7 2 spectral snapshots- Related Help Documents;
#X text 19 37 Links:;
#X restore 103 532 pd References;
#X obj 6 532 pddp/pddplink ../5.reference/pddp/help.pd -text help;
#X connect 0 0 28 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X connect 3 0 1 0;
#X connect 5 0 31 0;
#X connect 5 0 31 1;
#X connect 6 0 28 0;
#X connect 8 0 3 0;
#X connect 9 0 7 0;
#X connect 22 0 4 0;
#X connect 22 0 5 1;
#X connect 29 0 16 0;
#N struct arcs float x float y;
#N canvas 0 19 730 520 10;
#N canvas 585 77 781 562 arcs 0;
#X obj 110 33 struct arcs float x float y;
#X obj 48 119 draw path M 20 350 l 50 -25 a 25 25 -30 0 1 50 -25 l
50 -25 a 25 50 -30 0 1 50 -25 l 50 -25 a 25 75 -30 0 1 50 -25 l 50
-25 a 25 100 -30 0 1 50 -25 l 50 -25;
#X obj 48 79 loadbang;
#X msg 48 99 stroke red \, stroke-width 2;
#X obj 48 205 draw path M 30 350 h 100 a 25 200 0 0 1 50 0 h 60;
#X obj 48 165 loadbang;
#X msg 48 185 stroke blue \, stroke-width 2;
#X obj 48 225 loadbang;
#X msg 48 245 fill yellow \, stroke-width 2;
#X obj 48 265 draw path M 100 100 a 25 25 -30 0 1 50 -25 z;
#X obj 48 285 loadbang;
#X msg 48 305 fill yellow \, stroke-width 2;
#X obj 48 325 draw path M 180 100 a 25 25 30 0 1 50 25 z;
#X obj 48 345 loadbang;
#X msg 48 365 stroke-width 2;
#X obj 48 385 draw path M 0 0 A 40 40 0 1 1 0 80 A 40 40 0 1 1 0 0
Z;
#X obj 48 405 loadbang;
#X msg 48 425 stroke red;
#X obj 48 445 draw path M 0 -10 A 50 50 0 1 1 6 90;
#X obj 438 79 loadbang;
#X msg 438 100 stroke red;
#X obj 438 121 draw path M 0 -10 v -6 v 12;
#X obj 438 142 loadbang;
#X msg 438 163 stroke red;
#X obj 438 184 draw path M 6 90 l 6 -6 M 6 90 l 6 6;
#X obj 438 205 loadbang;
#X msg 438 226 stroke red;
#X obj 438 247 draw path M 0 90 A 50 50 0 1 1 -6 -10;
#X obj 438 268 loadbang;
#X msg 438 289 stroke red;
#X obj 438 310 draw path M 0 90 v -6 v 12;
#X obj 438 331 loadbang;
#X msg 438 352 stroke red;
#X obj 438 373 draw path M -6 -10 l -6 -6 M -6 -10 l -6 6;
#X obj 438 394 loadbang;
#X obj 438 456 draw path M 0 -10 a 20 10 0 1 1 0 20 a 20 10 0 1 1 0
-20 Z;
#X msg 438 415 stroke purple \, transform matrix 2.82843 -2.82843 2.82843
2.82843 200 200;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 5 0 6 0;
#X connect 6 0 4 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 19 0 20 0;
#X connect 20 0 21 0;
#X connect 22 0 23 0;
#X connect 23 0 24 0;
#X connect 25 0 26 0;
#X connect 26 0 27 0;
#X connect 28 0 29 0;
#X connect 29 0 30 0;
#X connect 31 0 32 0;
#X connect 32 0 33 0;
#X connect 34 0 36 0;
#X connect 36 0 35 0;
#X restore 95 90 pd arcs;
#X scalar arcs 147 177 \;;
#X obj 208 100 pddp/pddplink http://tclbitprint.sourceforge.net/tkpath/quartz/
;
#X text 207 71 This is a port of the tkpath demo on arcs. You can see
the original tkpath screenshot here:;
This diff is collapsed.
#N struct ball-and-bat float x float y;
#N canvas -9 19 624 562 10;
#X obj 132 -12 struct ball-and-bat float x float y;
#X scalar ball-and-bat -79 24 \;;
#X obj 132 9 route displace;
#X obj 132 30 unpack p f;
#X obj 189 82 t a b;
#X msg 216 109 clear;
#X obj 189 139 pipe 100;
#X obj 189 160 * 50;
#X msg 189 181 1000 \$1;
#X obj 189 202 -;
#X floatatom 127 226 5 0 0 0 - - -, f 5;
#X obj 189 244 line;
#X msg 188 223 0 \, 100 \$1;
#X obj 289 185 del;
#X obj 240 357 draw circle 0 20 20;
#X obj 65 297 loadbang;
#X msg 65 318 stroke-dasharray 5 5;
#X obj 289 227 f;
#X msg 289 248 0 \$1;
#X obj 293 163 + 250;
#X obj 150 56 moses 1;
#X obj 65 402 draw path m 22.9167 966.945 c -5.21812 0 -8.33333 3.13916
-8.33333 8.33333 0 4.16666 8.33333 10.4166 12.5 14.5833 8.33312 8.3334
22.0911 15.8413 35.4167 29.1667 l 12.5 12.5 -2.08334 2.0833 c 0 2.0833
2.08334 4.1667 4.16667 4.1667 l 4.16667 -4.1667 4.16666 -4.1667 c 0
-2.0833 -2.08333 -4.1666 -4.16666 -4.1666 l -2.08334 2.0833 -12.5 -12.5
c -11.9306 -11.9304 -20.8335 -27.0833 -29.1667 -35.4167 -4.16667 -4.16666
-10.4167 -12.5 -14.5833 -12.5 z;
#X msg 65 381 transform translate 590 -1800 rotate 0.57 65 1010 scale
2;
#X obj 65 360 loadbang;
#X obj 250 315 loadbang;
#X msg 250 336 stroke-width 2;
#X msg 240 294 transform translate \$1 0;
#X obj 65 339 draw rect -35 -35 225 205;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 3 1 20 0;
#X connect 4 0 6 0;
#X connect 4 1 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 12 0;
#X connect 9 0 10 0;
#X connect 9 0 17 1;
#X connect 9 0 19 0;
#X connect 11 0 26 0;
#X connect 12 0 11 0;
#X connect 13 0 17 0;
#X connect 15 0 16 0;
#X connect 16 0 27 0;
#X connect 17 0 18 0;
#X connect 18 0 11 0;
#X connect 19 0 13 0;
#X connect 20 1 4 0;
#X connect 22 0 21 0;
#X connect 23 0 22 0;
#X connect 24 0 25 0;
#X connect 25 0 14 0;
#X connect 26 0 14 0;
#N struct bulb float x float y float r float g float b float a float
s;
#N canvas 0 19 650 529 10;
#N canvas 808 20 538 662 bulb 0;
#X obj 87 137 loadbang;
#X obj 87 177 draw path M 100 100 m -43.3013 21.6987 a 50 50 0 1 1
86.6025 0 c -6 12 -23.3013 18.3013 -23.3013 33.3013 a 50 50 0 0 1 -40
0 c 0 -15 -17.3013 -21.3013 -23.3013 -33.3013 z;
#X obj 87 223 loadbang;
#X msg 87 243;
#X obj 87 263 draw path M 100 100 m -20 82 a 50 50 0 0 0 40 -2 l 0
3 -10 8 -20 0 -10 -8 z;
#X obj 87 296 loadbang;
#X msg 87 316;
#X obj 87 336 draw path M 100 100 m -20 55 a 50 50 0 0 0 40 -2 l 0
27 a -50 50 0 0 1 -40 2 z;
#X obj 87 369 loadbang;
#X msg 87 389;
#X obj 87 409 draw path M 100 100 m -20 53 a 50 50 0 0 0 40 0;
#X obj 87 429 loadbang;
#X msg 87 449;
#X obj 87 469 draw path M 100 100 m -20 82 a 50 50 0 0 0 40 0;
#X obj 87 489 loadbang;
#X msg 87 509;
#X obj 87 529 draw path M 100 100 m -20 61.75 a 50 50 0 0 0 40 -2;
#X obj 87 549 loadbang;
#X msg 87 569;
#X obj 87 589 draw path M 100 100 m -20 70.75 a 50 50 0 0 0 40 -2;
#X obj 87 1355;
#X obj 87 609 loadbang;
#X msg 87 629;
#X obj 87 649 draw path M 100 100 m -20 79.75 a 50 50 0 0 0 40 -2;
#X obj 87 669 loadbang;
#X msg 87 689;
#X obj 87 709 draw path M 100 100 m -20 55 a 50 50 0 0 0 40 -2;
#X obj 87 729 loadbang;
#X msg 87 749;
#X obj 87 769 draw path M 100 100 m -20 64 a 50 50 0 0 0 40 -2;
#X obj 87 789 loadbang;
#X msg 87 809;
#X obj 87 829 draw path M 100 100 m -20 73 a 50 50 0 0 0 40 -2;
#X obj 87 849 loadbang;
#X msg 87 869;
#X obj 87 889 draw path M 100 100 m -20 82 a 50 50 0 0 0 40 -2;
#X obj 87 909 loadbang;
#X msg 87 929;
#X obj 87 949 draw path M 100 100 m -20 57.25 a 50 50 0 0 0 40 -2;
#X obj 87 969 loadbang;
#X msg 87 989;
#X obj 87 1009 draw path M 100 100 m -20 66.25 a 50 50 0 0 0 40 -2
;
#X obj 87 1029 loadbang;
#X msg 87 1049;
#X obj 87 1069 draw path M 100 100 m -20 75.25 a 50 50 0 0 0 40 -2
;
#X obj 87 1089 loadbang;
#X msg 87 1109;
#X obj 87 1129 draw path M 100 100 m -20 59.5 a 50 50 0 0 0 40 -2;
#X obj 87 1149 loadbang;
#X msg 87 1169;
#X obj 87 1189 draw path M 100 100 m -20 68.5 a 50 50 0 0 0 40 -2;
#X obj 87 1209 loadbang;
#X msg 87 1229;
#X obj 87 1249 draw path M 100 100 m -20 77.5 a 50 50 0 0 0 40 -2;
#X obj 87 1269 loadbang;
#X msg 87 1289;
#X obj 87 1309 draw path M 100 100 m -43.3013 21.6987 a 50 50 0 1 1
86.6025 0 c -6 12 -23.3013 18.3013 -23.3013 33.3013 l 0 28 -10 8 -20
0 -10 -8 0 -28 c 0 -15 -17.3013 -21.3013 -23.3013 -33.3013 z;
#X obj 87 77 loadbang;
#X obj 87 117 draw group;
#X msg 87 97 transform scale 0.5;
#X obj 120 47 outlet;
#X obj 120 11 struct bulb float x float y float r float g float b float
a float s;
#X msg 87 157 fill r g b a \, stroke-width s \, stroke r g b;
#X connect 0 0 62 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 17 0 18 0;
#X connect 18 0 19 0;
#X connect 21 0 22 0;
#X connect 22 0 23 0;
#X connect 24 0 25 0;
#X connect 25 0 26 0;
#X connect 27 0 28 0;
#X connect 28 0 29 0;
#X connect 30 0 31 0;
#X connect 31 0 32 0;
#X connect 33 0 34 0;
#X connect 34 0 35 0;
#X connect 36 0 37 0;
#X connect 37 0 38 0;
#X connect 39 0 40 0;
#X connect 40 0 41 0;
#X connect 42 0 43 0;
#X connect 43 0 44 0;
#X connect 45 0 46 0;
#X connect 46 0 47 0;
#X connect 48 0 49 0;
#X connect 49 0 50 0;
#X connect 51 0 52 0;
#X connect 52 0 53 0;
#X connect 54 0 55 0;
#X connect 55 0 56 0;
#X connect 57 0 59 0;
#X connect 59 0 58 0;
#X connect 61 0 60 0;
#X connect 62 0 1 0;
#X restore 350 42 pd bulb;
#X obj 350 66 route enter leave;
#X obj 350 170 random 255;
#X obj 420 170 random 255;
#X obj 490 170 random 255;
#X obj 350 134 trigger bang bang bang anything;
#X obj 564 168 t a;
#X obj 350 240 set bulb r g b a s;
#X scalar bulb 37 89 179 90 251 1 2 \;;
#X scalar bulb 207 89 106 151 55 1 2 \;;
#X scalar bulb 117 89 99 80 19 1 2 \;;
#X scalar bulb 37 189 217 29 78 1 2 \;;
#X scalar bulb 204 187 16 187 75 1 2 \;;
#X scalar bulb 117 189 240 80 48 1 2 \;;
#X scalar bulb 37 289 117 137 164 1 2 \;;
#X scalar bulb 207 289 26 137 146 1 2 \;;
#X scalar bulb 117 289 163 185 245 1 2 \;;
#X scalar bulb 287 289 237 164 142 1 2 \;;
#X scalar bulb 467 289 4 106 176 1 2 \;;
#X scalar bulb 377 289 244 154 225 1 2 \;;
#X scalar bulb 37 -11 199 4 205 1 2 \;;
#X scalar bulb 207 -11 234 160 144 1 2 \;;
#X scalar bulb 117 -11 90 74 151 1 2 \;;
#X obj 399 112 set bulb s a;
#X obj 350 211 pack f f f 0.3 5;
#X msg 399 91 2 1 \$1;
#X text 76 426 Light Bulbs;
#X text 76 426 ___________;
#X text 76 446 This is just a quick demo to show enter/leave functionality
for scalars.;
#X connect 0 0 1 0;
#X connect 1 0 5 0;
#X connect 1 1 25 0;
#X connect 2 0 24 0;
#X connect 3 0 24 1;
#X connect 4 0 24 2;
#X connect 5 0 2 0;
#X connect 5 1 3 0;
#X connect 5 2 4 0;
#X connect 5 3 6 0;
#X connect 6 0 7 5;
#X connect 24 0 7 0;
#X connect 25 0 23 0;
This diff is collapsed.
#N struct circlehand float x float y;
#N canvas 0 23 826 503 10;
#X obj 481 1 struct circlehand float x float y;
#X scalar circlehand -135 -183 \;;
#X obj 594 205 draw path M 320 240 c -50 100 50 110 0 190;
#X obj 519 332 draw circle 320 430 5;
#X obj 357 452 draw circle 320 220 20;
#X obj 519 278 loadbang;
#X obj 519 403 draw circle 530 430 20;
#X obj 519 251 draw circle 320 220 20;
#X msg 519 135 transform rotate \$1 320 430;
#X obj 519 92 pow 2;
#X msg 518 48 0 \, 1 1000;
#X obj 519 113 * 1.57;
#X obj 357 408 loadbang;
#X msg 357 429 fill blue \, stroke blue \, stroke-width 2 \, fill-opacity
0.4;
#X msg 531 228 stroke-width 2 \, stroke blue \, stroke-opacity 0.4
;
#X obj 519 68 line;
#X msg 594 180 stroke-width 2 \, stroke blue;
#X msg 519 305 fill blue \, stroke blue \, stroke-opacity 1 \, fill-opacity
1;
#X msg 599 47 0;
#X obj 519 360 loadbang;
#X msg 519 381 stroke-width 2 \, stroke blue \, fill blue \, fill-opacity
0.4;
#X obj 481 22 route click;
#X obj 594 156 loadbang;
#X obj 531 205 loadbang;
#X text 81 303 This is just a quick animation \, based on a demo from
Raphael.js.;
#X text 81 343 It uses [line] to control the animation. You can essentially
control the frame rate using the second argument of [line].;
#X text 81 383 The original is here:;
#X obj 81 404 pddp/pddplink http://raphaeljs.com/hand.html;
#X connect 0 0 21 0;
#X connect 5 0 17 0;
#X connect 8 0 2 0;
#X connect 8 0 7 0;
#X connect 9 0 11 0;
#X connect 10 0 15 0;
#X connect 11 0 8 0;
#X connect 12 0 13 0;
#X connect 13 0 4 0;