From 9ccd227186a64e20aa4411ffe2fcaa236c9a7acf Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes Date: Fri, 17 Dec 2010 02:24:56 +0000 Subject: added some more links svn path=/trunk/; revision=14665 --- doc/pddp/set-help.pd | 111 ++++++++++++++------------------------------------- 1 file changed, 29 insertions(+), 82 deletions(-) (limited to 'doc/pddp/set-help.pd') diff --git a/doc/pddp/set-help.pd b/doc/pddp/set-help.pd index fb306664..f29b1a0a 100644 --- a/doc/pddp/set-help.pd +++ b/doc/pddp/set-help.pd @@ -1,5 +1,4 @@ -#N struct set-help-template float x float y float a float b symbol -desc; +#N struct set-help-template float x float y float a symbol b; #N canvas 0 0 555 619 10; #X obj 0 595 cnv 15 552 21 empty \$0-pddp.cnv.footer empty 20 12 0 14 -228856 -66577 0; @@ -51,66 +50,12 @@ by Jonathan Wilkes to conform to the PDDP template for Pd version 0.42. #X obj 466 20 pddp/pddplink http://wiki.puredata.info/en/set -text pdpedia: set; #X text 11 23 set values in a scalar; -#N canvas 114 251 428 334 set-help-template 0; +#N canvas 381 200 428 296 set-help-template 0; #X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0 14 -204280 -1 0; #X text 8 2 [set] Data Structure Template; -#X obj 23 43 struct set-help-template float x float y float a float -b symbol desc; #X obj 23 124 drawcurve 0 1 60 50 70 50 70 60 60 60 60 50; #X obj 23 244 drawcurve 0 1 25 85 50 a 75 85; -#N canvas 128 146 428 443 poll 0; -#X obj 22 95 metro 500; -#X msg 22 117 traverse pd-set-help.pd \, next; -#X msg 22 172 next; -#X obj 111 173 pointer; -#X obj 22 195 pointer; -#X obj 22 142 t b a; -#X obj 111 217 get set-help-template a; -#X obj 22 262 get set-help-template a; -#X obj 111 239 moses 87; -#X msg 156 285 symbol Comedy; -#X obj 111 336 set -symbol set-help-template desc; -#X obj 111 195 t a a; -#X obj 22 217 t a a; -#X msg 111 307 symbol Tragedy; -#X msg 22 386 symbol Tragedy; -#X msg 67 364 symbol Comedy; -#X obj 22 408 set -symbol set-help-template desc; -#X obj 22 73 loadbang; -#X obj 22 337 moses 88; -#X obj 0 0 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0 -14 -204280 -1 0; -#X text 7 1 [set] Subpatch; -#X text 19 29 This subpatch just makes the help patch a little more -interactive by changing the text depending on whether there is a frown -or a smile.; -#X connect 0 0 1 0; -#X connect 1 0 5 0; -#X connect 2 0 4 0; -#X connect 3 0 4 1; -#X connect 3 0 11 0; -#X connect 4 0 12 0; -#X connect 5 0 2 0; -#X connect 5 1 3 0; -#X connect 6 0 8 0; -#X connect 7 0 18 0; -#X connect 8 0 13 0; -#X connect 8 1 9 0; -#X connect 9 0 10 0; -#X connect 11 0 6 0; -#X connect 11 1 10 1; -#X connect 12 0 7 0; -#X connect 12 1 16 1; -#X connect 13 0 10 0; -#X connect 14 0 16 0; -#X connect 15 0 16 0; -#X connect 17 0 0 0; -#X connect 18 0 14 0; -#X connect 18 1 15 0; -#X restore 25 307 pd poll; -#X text 25 272 The following subpatch is used to change the symbol -"desc" depending on whether each face is smiling or frowning.; #X obj 23 80 drawcurve 0 1 0 20 100 20 100 120 0 120 0 20; #X text 298 79 <- Head; #X obj 23 102 drawcurve 0 1 30 50 40 50 40 60 30 60 30 50; @@ -121,31 +66,29 @@ or a smile.; change the arc/direction of the curve.; #X text 217 244 <- Mouth; #X text 187 152 <- Text; -#X obj 25 152 drawsymbol desc 30 b 0 b=; #X text 187 175 <- Text; -#X obj 25 175 drawnumber a 40 a 0 a=; -#X restore 415 193 pd set-help-template; -#X scalar set-help-template 2 65 107 0 Comedy \;; -#X obj 357 166 pointer; -#X msg 357 113 traverse pd-set-help.pd \, next; -#X floatatom 210 167 5 0 0 0 - - -; -#X text 364 96 output first scalar in list; -#X scalar set-help-template 107 42 63 127 Tragedy \;; -#X msg 368 138 next; -#X text 403 137 output next item; +#X obj 23 43 struct set-help-template float x float y float a symbol +b; +#X obj 25 152 drawsymbol b 25 125 0 b=; +#X obj 25 175 drawnumber a 40 a 900 a=; +#X restore 417 153 pd set-help-template; +#X scalar set-help-template 7 42 111 Comedy \;; +#X obj 359 126 pointer; +#X msg 359 73 traverse pd-set-help.pd \, next; +#X floatatom 224 127 5 0 0 0 - - -; +#X text 366 56 output first scalar in list; +#X scalar set-help-template 116 42 61 Tragedy \;; +#X msg 370 98 next; +#X text 405 97 output next item; #X text 98 373 pointer; #X text 168 265 - a list is distributed among the inlets.; #X text 98 405 (none); -#X obj 210 193 set set-help-template a b; -#X floatatom 256 144 5 0 0 0 - - -; #X obj 78 238 cnv 17 3 85 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; #X text 98 332 float; #X text 98 283 bang; -#X obj 256 166 t b a; #X text 98 346 symbol; #X text 98 310 symbol; -#X text 354 72 Click here first:; #X text 168 464 - all subsequent arguments are names of fields. There is one inlet created per field (plus the rightmost inlet for the pointer). ; @@ -170,29 +113,33 @@ not working yet) and set individual items.; #X obj 224 124 pointer; #X msg 224 71 traverse pd-set-help.pd \, next; #X msg 235 96 next; -#X obj 23 151 set -symbol set-help-template desc; #X msg 23 84 symbol Trauermarsch; #X msg 48 109 symbol Scherzo; #X text 20 37 To set symbolic fields of a scalar \, the "-symbol" flag must be used as follows:; #X text 20 178 You cannot set symbols and floats using the same [set] object.; -#X connect 2 0 5 1; +#X obj 23 151 set -symbol set-help-template b; +#X connect 2 0 9 1; #X connect 3 0 2 0; #X connect 4 0 2 0; -#X connect 6 0 5 0; -#X connect 7 0 5 0; +#X connect 5 0 9 0; +#X connect 6 0 9 0; #X restore 101 552 pd Setting_Symbolic_Fields; #X text 80 446 1) symbol atom; #X text 80 464 n) symbol atom; -#X obj 4 597 pddp/pddplink all_about_help_patches.pd -text Usage Guide; +#X obj 4 597 pddp/pddplink all_about_help_patches.pd -text Usage Guide +; #X obj 98 572 pddp/pddplink ../4.data.structures/03.setting.data.pd -text doc/4.data.structures/03.setting.data.pd; #X obj 353 552 pddp/pddplink scalar-help.pd; -#X connect 17 0 27 2; +#X obj 224 153 set set-help-template a; +#X obj 224 201 set -symbol set-help-template b; +#X symbolatom 224 180 10 0 0 0 - - -; +#X text 236 73 Click here first->; +#X connect 17 0 46 1; +#X connect 17 0 47 1; #X connect 18 0 17 0; -#X connect 19 0 27 0; +#X connect 19 0 46 0; #X connect 22 0 17 0; -#X connect 28 0 32 0; -#X connect 32 0 27 0; -#X connect 32 1 27 1; +#X connect 48 0 47 0; -- cgit v1.2.1