From 5ab208956a3407ddd31d2ff135adbeac4b87fd22 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 27 Apr 2005 20:22:20 +0000 Subject: added GOP prettiness to pddp_open; cleaned up help-until.pd svn path=/trunk/; revision=2839 --- doc/pddp/all_about_hid_mapping.pd | 7 +- doc/pddp/help-until.pd | 187 +++++++++++++++++++------------------- doc/pddp/pddp_open.pd | 37 ++++---- doc/pddp/table_of_contents.pd | 4 +- 4 files changed, 119 insertions(+), 116 deletions(-) diff --git a/doc/pddp/all_about_hid_mapping.pd b/doc/pddp/all_about_hid_mapping.pd index 84351eff..ed5d2fdc 100644 --- a/doc/pddp/all_about_hid_mapping.pd +++ b/doc/pddp/all_about_hid_mapping.pd @@ -1,4 +1,4 @@ -#N canvas 304 56 896 578 10; +#N canvas 304 56 900 582 10; #N canvas 0 22 450 300 graph1 0; #X array cuberoot 100 float 0; #X coords 0 1 99 0 100 100 1; @@ -113,7 +113,7 @@ scale; #X text 22 530 (C) Copyright 2004 Hans-Christoph Steiner ; #X text 239 544 released under the GNU GPL; -#X text 445 531 $Revision: 1.6 $$Date: 2005-04-18 00:33:26 $; +#X text 445 531 $Revision: 1.7 $$Date: 2005-04-27 20:22:20 $; #X text 446 544 $Author: eighthave $; #X obj 88 167 hid_average; #X text 1 83 SCALING AND RANGING; @@ -128,9 +128,8 @@ scale; #X text 371 473 - pitch is perceived on logarithmic scale; #X text 371 496 - many sensors work best on other curves; #X text 1 286 POLAR COORDINATES; -#X obj 84 303 hid_degrees; #X obj 9 303 hid_polar; -#X obj 174 303 hid_spiral; +#X obj 80 303 hid_spiral; #X obj 10 350 hid2rad; #X obj 130 350 hid2deg; #X obj 70 350 rad2hid; diff --git a/doc/pddp/help-until.pd b/doc/pddp/help-until.pd index 8faa4e3a..26c96c89 100644 --- a/doc/pddp/help-until.pd +++ b/doc/pddp/help-until.pd @@ -1,92 +1,95 @@ -#N canvas 59 5 829 645 10; -#X msg 28 525 bang; -#X obj 25 13 until; -#X obj 28 546 until; -#X text 59 525 start; -#X obj 28 568 f; -#X obj 57 568 + 1; -#X obj 103 570 sel 0; -#X obj 28 612 print; -#X obj 57 590 mod 10; -#X text 19 42 Every modern programming language will have various "looping" -mechanisms: either in the form of an object \, or as a data structure. -For example in Visual Basic:; -#X text 30 100 DO UNTIL i = 100; -#X text 30 114 i = i + 1; -#X text 31 85 i = 0; -#X text 30 129 LOOP; -#X text 15 210 And now PD's version of the above programming structures: -; -#X obj 24 257 until; -#X msg 24 237 100; -#X obj 24 277 print i; -#X text 17 304 If you start [until] with a "bang" \, it will begin -an infinite loop! Please plan ahead in this case so that there is a -mechanism in place to stop the loop - otherwise PD will effectively -freeze.; -#X text 17 361 HOW TO FREEZE PD; -#X msg 25 384 bang; -#X obj 25 404 until; -#X obj 25 424 print; -#X text 63 384 DO NOT CLICK. DO NOT CLICK. DO NOT CLICK.; -#X text 66 404 If you click \, click the "close window" (X) button -on PD's terminal window - or reboot the computer.; -#X text 17 145 OR:; -#X text 29 161 FOR i = 0 TO 100; -#X text 28 187 NEXT; -#X text 29 175 ' do something; -#X text 26 493 The example below includes a method to stop the loop -to prevent PD from looping infinitely.; -#X text 434 44 If you start [until] with a number \, it iterates that -number of times. The [uzi] object in MAX works the same way.; -#X obj 441 131 until; -#X msg 441 84 100; -#X obj 441 151 print i; -#X msg 469 91 3; -#X msg 497 98 42; -#X text 26 451 The [until] object's left inlet starts a loop in which -it outputs "bang" until its right inlet gets a "bang" which stops it. -; -#X obj 413 17 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X obj 413 605 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X text 67 13 - LOOPing mechanism; -#X text 442 580 This document was updated for PD version 0.35 test -26 by Dave Sabine as part of a project called pddp proposed by Krzysztof -Czaja to build comprehensive documentation for PD.; -#X text 436 185 RELATED OBJECTS; -#X text 441 204 ?? This author does not know of any other native looping -mechanisms in PD.; -#N canvas 0 0 452 302 related_objects_from_other_libraries 0; -#X text 27 63 These objects are offered in PD only if you have downloaded -and properly installed the appropriate library. These objects may or -may not exist in a single library.; -#X text 26 112 The best places to find information about PD's libraries -is:; -#X text 23 134 www.puredata.org and click on "Downloads" then "Software" -; -#X text 25 149 or; -#X text 25 164 iem.kug.ac.at/pdb/; -#X obj 43 32 for++; -#X obj 90 32 counter; -#X obj 150 32 gem_counter; -#X obj 250 32 modulo_counter; -#X restore 449 244 pd related_objects_from_other_libraries; -#X connect 0 0 2 0; -#X connect 2 0 4 0; -#X connect 4 0 5 0; -#X connect 4 0 7 0; -#X connect 5 0 8 0; -#X connect 6 0 2 1; -#X connect 8 0 4 1; -#X connect 8 0 6 0; -#X connect 15 0 17 0; -#X connect 16 0 15 0; -#X connect 20 0 21 0; -#X connect 21 0 22 0; -#X connect 31 0 33 0; -#X connect 32 0 31 0; -#X connect 34 0 31 0; -#X connect 35 0 31 0; -#X connect 37 0 38 0; +#N canvas 272 105 879 604 10; +#X obj 13 49 until; +#X text 7 78 Every modern programming language will have various "looping" +mechanisms: either in the form of an object \, or as a data structure. +For example in Visual Basic:; +#X text 18 145 DO UNTIL i = 100; +#X text 18 159 i = i + 1; +#X text 19 130 i = 0; +#X text 18 174 LOOP; +#X text 3 285 And now PD's version of the above programming structures: +; +#X obj 12 332 until; +#X msg 12 312 100; +#X obj 12 352 print i; +#X text 5 379 If you start [until] with a "bang" \, it will begin an +infinite loop! Please plan ahead in this case so that there is a mechanism +in place to stop the loop - otherwise PD will effectively freeze.; +#X text 5 446 HOW TO FREEZE PD; +#X msg 13 469 bang; +#X obj 13 489 until; +#X obj 13 509 print; +#X text 51 469 DO NOT CLICK. DO NOT CLICK. DO NOT CLICK.; +#X text 5 200 OR:; +#X text 17 226 FOR i = 0 TO 100; +#X text 16 252 NEXT; +#X text 17 240 ' do something; +#X text 439 240 If you start [until] with a number \, it iterates that +number of times. The [uzi] object in MAX works the same way.; +#X obj 496 328 until; +#X msg 496 281 100; +#X obj 496 348 print i; +#X msg 524 288 3; +#X msg 552 295 42; +#X text 14 536 The [until] object's left inlet starts a loop in which +it outputs "bang" until its right inlet gets a "bang" which stops it. +; +#X obj 418 44 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 418 571 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X text 55 49 - LOOPing mechanism; +#X text 441 381 RELATED OBJECTS; +#X text 446 400 ?? This author does not know of any other native looping +mechanisms in PD.; +#N canvas 0 22 452 302 related_objects_from_other_libraries 0; +#X text 27 63 These objects are offered in PD only if you have downloaded +and properly installed the appropriate library. These objects may or +may not exist in a single library.; +#X text 26 112 The best places to find information about PD's libraries +is:; +#X text 23 134 www.puredata.org and click on "Downloads" then "Software" +; +#X text 25 149 or; +#X text 25 164 iem.kug.ac.at/pdb/; +#X obj 43 32 for++; +#X obj 90 32 counter; +#X obj 150 32 gem_counter; +#X obj 250 32 modulo_counter; +#X restore 454 440 pd related_objects_from_other_libraries; +#X obj 486 513 pddp_open all_about_looping; +#X text 450 490 For more info:; +#X msg 496 110 bang; +#X obj 496 131 until; +#X text 527 110 start; +#X obj 496 153 f; +#X obj 525 153 + 1; +#X obj 571 155 sel 0; +#X obj 496 197 print; +#X obj 525 175 mod 10; +#X text 444 58 The example below includes a method to stop the loop +to prevent PD from looping infinitely.; +#X text 54 489 If you click \, kill Pd or reboot the computer.; +#X text 447 546 This document was updated for PD version 0.35 test +26 by Dave Sabine as part of a project called pddp proposed by Krzysztof +Czaja to build comprehensive documentation for PD.; +#X obj 2 2 cnv 15 870 20 empty empty [until] 20 10 1 18 -233017 -66577 +0; +#X obj 821 3 pddp; +#X connect 7 0 9 0; +#X connect 8 0 7 0; +#X connect 12 0 13 0; +#X connect 13 0 14 0; +#X connect 21 0 23 0; +#X connect 22 0 21 0; +#X connect 24 0 21 0; +#X connect 25 0 21 0; +#X connect 27 0 28 0; +#X connect 35 0 36 0; +#X connect 36 0 38 0; +#X connect 38 0 39 0; +#X connect 38 0 41 0; +#X connect 39 0 42 0; +#X connect 40 0 36 1; +#X connect 42 0 38 1; +#X connect 42 0 40 0; diff --git a/doc/pddp/pddp_open.pd b/doc/pddp/pddp_open.pd index 5803e4dc..a0d93dba 100644 --- a/doc/pddp/pddp_open.pd +++ b/doc/pddp/pddp_open.pd @@ -1,29 +1,30 @@ -#N canvas 177 350 522 390 10; -#X obj 110 4 inlet; -#X msg 89 227 \; pd open \$1.pd \$2; -#X obj 89 194 pack s s; -#X obj 89 139 symbol; -#X obj 111 113 t a b; -#X obj 4 2 bng 18 250 50 0 empty empty empty 0 -6 0 8 -44926 -1 -1 +#N canvas 416 398 124 30 10; +#X obj 107 2 inlet; +#X msg 86 225 \; pd open \$1.pd \$2; +#X obj 86 192 pack s s; +#X obj 86 137 symbol; +#X obj 108 111 t a b; +#X obj 0 0 bng 18 250 50 0 \$0- \$0- empty 0 -6 0 8 -44926 -1 -1; +#X obj 0 61 symbol \$1; +#X obj 58 40 symbol; +#X text 313 346 released under the GNU GPL; +#X text 98 318 (C) Copyright 2005 Hans-Christoph Steiner ; -#X obj 3 63 symbol \$1; -#X obj 61 42 symbol; -#X text 316 348 released under the GNU GPL; -#X text 99 334 (C) Copyright 2005 Hans-Christoph Steiner -; -#X text 93 65 <-- store the last value so that the GOP bang will open +#X text 90 63 <-- store the last value so that the GOP bang will open it; -#X text 26 282 This patch opens a patch either from the first argument +#X text 20 287 This patch opens a patch either from the first argument or sent in as a message.; -#X obj 140 168 getdir; +#X obj 19 0 cnv 16 45 18 empty empty open: 6 9 0 14 -233017 -1 0; +#X text 279 176 GOP: 168x18; +#X obj 137 166 getdir; #X connect 0 0 4 0; #X connect 0 0 7 0; #X connect 2 0 1 0; #X connect 3 0 2 0; #X connect 4 0 3 0; -#X connect 4 1 12 0; +#X connect 4 1 14 0; #X connect 5 0 6 0; #X connect 6 0 4 0; #X connect 7 0 6 1; -#X connect 12 0 2 1; -#X coords 0 0 1 1 20 18 1; +#X connect 14 0 2 1; +#X coords 0 0 1 1 124 18 1; diff --git a/doc/pddp/table_of_contents.pd b/doc/pddp/table_of_contents.pd index 469ed419..c7994654 100644 --- a/doc/pddp/table_of_contents.pd +++ b/doc/pddp/table_of_contents.pd @@ -1,7 +1,7 @@ -#N canvas 282 141 514 633 10; +#N canvas 282 141 518 637 10; #X obj 3 2 cnv 15 500 20 empty empty pddp 2 12 1 18 -233017 -66577 0; -#X obj 9 580 pddp_open; +#X obj 9 572 pddp_open; #X msg 10 100 acoustic_conversions; #X msg 10 120 arrays; #X msg 10 140 cyclone; -- cgit v1.2.1