From e0267013c4de07cf495b4488a66181e4027d88a4 Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Fri, 19 Jun 2009 17:00:34 +0000 Subject: Added a few externals to tof svn path=/trunk/externals/tof/; revision=11801 --- help/argument-abs.pd | 29 +++++++++++++++ help/argument-help.pd | 47 ++++++++++++++++++++++++ help/crossfade~-help.pd | 39 ++++++++++++++++++++ help/increment-help.pd | 49 ++++++++++++++++++++++++ help/iterate-help.pd | 61 ++++++++++++++++++++++++++++++ help/listUnfold-help.pd | 20 ++++++++++ help/path-help.pd | 94 +++++++++++++++++++++++++++++++++++++++++++++++ help/streamMinMax-help.pd | 28 ++++++++++++++ help/wrapper-help.pd | 27 ++++++++++++++ 9 files changed, 394 insertions(+) create mode 100644 help/argument-abs.pd create mode 100644 help/argument-help.pd create mode 100644 help/crossfade~-help.pd create mode 100644 help/increment-help.pd create mode 100644 help/iterate-help.pd create mode 100644 help/listUnfold-help.pd create mode 100644 help/path-help.pd create mode 100644 help/streamMinMax-help.pd create mode 100644 help/wrapper-help.pd (limited to 'help') diff --git a/help/argument-abs.pd b/help/argument-abs.pd new file mode 100644 index 0000000..0e209a4 --- /dev/null +++ b/help/argument-abs.pd @@ -0,0 +1,29 @@ +#N canvas 336 203 614 414 10; +#X obj 158 36 inlet; +#X obj 158 92 t b b b; +#X text 220 105 first; +#X text 159 192 second; +#X text 73 282 third; +#X obj 11 303 argument 3 500; +#X obj 210 130 argument 1; +#X text 279 131 <-Outputs the first parent argument "symbol a"; +#X obj 158 67 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X obj 134 213 argument 2 100; +#X text 231 208 <-Outputs "100" because the types of the second argument +("symbol b") and the default argument ("float 100") do not match.; +#X text 200 29 Please note that the current parent arguments are: a +b; +#X text 101 305 <- Outputs "500" because there is not third parent +argument; +#X obj 210 166 print arg1; +#X obj 129 258 print arg2; +#X obj 11 342 print arg3; +#X connect 0 0 8 0; +#X connect 1 0 5 0; +#X connect 1 1 9 0; +#X connect 1 2 6 0; +#X connect 5 0 15 0; +#X connect 6 0 13 0; +#X connect 8 0 1 0; +#X connect 9 0 14 0; diff --git a/help/argument-help.pd b/help/argument-help.pd new file mode 100644 index 0000000..c274ce8 --- /dev/null +++ b/help/argument-help.pd @@ -0,0 +1,47 @@ +#N canvas 305 118 476 537 10; +#X obj 66 482 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X obj -11 19 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577 +0; +#X text -6 75 author: mrtoftrash@gmail.com; +#X text -6 96 version: 2009-04-14 (initial release); +#X text -7 60 tags: initialization; +#X text -6 18 description: outputs an inital argument. Outputs a default +one if no initial argument is set. Can also check that an argument +is of a particular type.; +#X obj 13 187 argument 1; +#X text 5 247 If a second argument is set \, its value will be used +as the default value. The default value is used only if there is no +parent argument OR if the type of the parent argument does not match +the type of the default one.; +#X obj 4 322 argument 1 32; +#X obj 12 167 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X obj 4 298 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X obj 4 349 print; +#X obj 13 208 print; +#X text 6 135 The first argument selects the nth parent argument to +output.; +#X text 92 321 <-Will output 32 because there are no parent arguments. +; +#X text 87 183 <-Should output the first parent argument. But in this +case \, the parent (the containing patch) has no arguments and this +example will not output anything.; +#X text 137 428 -- Example --; +#X text 5 449 Inside the following abstraction \, three [argument] +objects are linked to arguments 1 \, 2 and 3; +#X obj 158 347 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 +-1 -1; +#X obj 158 369 argument; +#X obj 158 395 print; +#X text 218 370 <-Outputs the \$0 as symbol; +#X text 172 506 <- open it; +#X obj 66 506 argument-abs a b; +#X connect 0 0 23 0; +#X connect 6 0 12 0; +#X connect 8 0 11 0; +#X connect 9 0 6 0; +#X connect 10 0 8 0; +#X connect 18 0 19 0; +#X connect 19 0 20 0; diff --git a/help/crossfade~-help.pd b/help/crossfade~-help.pd new file mode 100644 index 0000000..488b0e9 --- /dev/null +++ b/help/crossfade~-help.pd @@ -0,0 +1,39 @@ +#N canvas 339 91 631 441 10; +#X floatatom 323 276 5 0 0 0 - - -; +#X obj 123 292 crossfade~ 2; +#X obj 32 -13 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577 +0; +#X text 37 21 author: mrtoftrash@gmail.com; +#X text 37 32 version: 2009-06-04 (initial release); +#X obj 36 164 osc~ 100; +#X obj 123 388 dac~; +#X obj 197 189 noise~; +#X obj 93 163 osc~ 500; +#X obj 248 189 osc~ 200; +#X obj 122 361 *~ 0.5; +#X obj 193 360 *~ 0.5; +#X obj 229 338 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X text 35 142 First source: signal inlets to the left.; +#X text 187 170 Second source: signal inlets to the right.; +#X obj 326 255 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X text 334 234 Crossfade: 0-1; +#X text 261 215 The right most inlet controls the linear crossfade +value.; +#X text 38 10 tags: signal mix; +#X text 37 -14 description: crossfades 2 multi-channel sources; +#X text 41 104 Argument: The number of channels for each source (defaults +to 2); +#X connect 0 0 1 4; +#X connect 1 0 10 0; +#X connect 1 1 11 0; +#X connect 5 0 1 0; +#X connect 7 0 1 2; +#X connect 8 0 1 1; +#X connect 9 0 1 3; +#X connect 10 0 6 0; +#X connect 11 0 6 1; +#X connect 12 0 10 1; +#X connect 12 0 11 1; +#X connect 15 0 0 0; diff --git a/help/increment-help.pd b/help/increment-help.pd new file mode 100644 index 0000000..d7fb6ed --- /dev/null +++ b/help/increment-help.pd @@ -0,0 +1,49 @@ +#N canvas 1174 80 640 574 10; +#X obj 22 -23 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577 +0; +#X text 27 11 author: mrtoftrash@gmail.com; +#X text 27 22 version: 2009-05-07 (initial release); +#X msg 101 166 3; +#X msg 62 166 6; +#X obj 291 328 print; +#X text 27 -24 description: increment a number.; +#X text 28 0 tags: flow counter; +#X obj 27 216 increment; +#X msg 147 199 1; +#X msg 179 199 -1; +#X obj 27 120 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X obj 27 244 print; +#X obj 290 268 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 +-1 -1; +#X obj 291 297 increment 10 3; +#X text 22 89 First inlet:; +#X text 22 100 Bang: Outputs and increments the value.; +#X text 60 147 Second inlet: sets the value; +#X text 148 179 Third inlet: sets the step(incrementation) amount; +#X obj 49 479 print; +#X obj 49 321 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X msg 72 349 set 43; +#X msg 96 376 step 5; +#X msg 125 402 reset; +#X obj 49 448 increment 10 3; +#X text 283 229 Argument 1: start value (defaults to 0); +#X text 283 244 Argument 2: step(incrementation) value (defaults to +1); +#X text 118 349 Set the start value; +#X text 144 376 Set the step value; +#X text 171 400 Reset to the start value; +#X connect 3 0 8 1; +#X connect 4 0 8 1; +#X connect 8 0 12 0; +#X connect 9 0 8 2; +#X connect 10 0 8 2; +#X connect 11 0 8 0; +#X connect 13 0 14 0; +#X connect 14 0 5 0; +#X connect 20 0 24 0; +#X connect 21 0 24 0; +#X connect 22 0 24 0; +#X connect 23 0 24 0; +#X connect 24 0 19 0; diff --git a/help/iterate-help.pd b/help/iterate-help.pd new file mode 100644 index 0000000..c5d5be7 --- /dev/null +++ b/help/iterate-help.pd @@ -0,0 +1,61 @@ +#N canvas 1184 0 638 689 10; +#X obj 12 -33 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577 +0; +#X text 17 1 author: mrtoftrash@gmail.com; +#X text 17 12 version: 2009-05-07 (initial release); +#X text 293 244 Optional argument 1: start value; +#X text 17 -10 tags: stream flow; +#X obj 51 151 iterate; +#X obj 51 182 print; +#X msg 22 116 3; +#X msg 77 113 6; +#X obj 313 148 iterate; +#X obj 386 150 sel 4; +#X obj 313 191 print; +#X msg 312 120 6; +#X text 286 85 Bang: A bang will stop the iteration before it ends. +; +#X text 21 85 Float: Iterates that many times.; +#X obj 35 339 iterate; +#X obj 35 370 print; +#X obj 329 369 print; +#X msg 329 304 4; +#X obj 329 338 iterate 20 2; +#X text 36 242 Inlet 2: start value; +#X msg 34 282 5; +#X msg 67 284 10; +#X msg 98 283 3; +#X msg 110 309 1; +#X msg 148 311 -1; +#X msg 361 419 10 100 3; +#X obj 361 455 iterate; +#X obj 361 495 print; +#X obj 361 575 iterate; +#X obj 361 615 print; +#X msg 360 539 start 15 \, step -0.5 \, 5; +#X text 17 -34 description: iterates through numbers (as a "for" loop). +; +#X text 35 227 Inlet 1: iterations; +#X text 89 452 Iterate 10 times from 100 with a step of 3:; +#X text 89 560 Iterate 5 times from 15 with a step of -0.5:; +#X text 293 259 Optional argument 2: step value; +#X text 36 256 Inlet 3: step value; +#X connect 5 0 6 0; +#X connect 7 0 5 0; +#X connect 8 0 5 0; +#X connect 9 0 11 0; +#X connect 9 0 10 0; +#X connect 10 0 9 0; +#X connect 12 0 9 0; +#X connect 15 0 16 0; +#X connect 18 0 19 0; +#X connect 19 0 17 0; +#X connect 21 0 15 0; +#X connect 22 0 15 1; +#X connect 23 0 15 1; +#X connect 24 0 15 2; +#X connect 25 0 15 2; +#X connect 26 0 27 0; +#X connect 27 0 28 0; +#X connect 29 0 30 0; +#X connect 31 0 29 0; diff --git a/help/listUnfold-help.pd b/help/listUnfold-help.pd new file mode 100644 index 0000000..f837bc5 --- /dev/null +++ b/help/listUnfold-help.pd @@ -0,0 +1,20 @@ +#N canvas 154 102 524 446 10; +#X obj 196 327 listUnfold; +#X obj 165 388 print value; +#X obj 277 385 print index; +#X msg 199 277 anything works too; +#X msg 154 208 5 3 2 8 4; +#X msg 185 237 symbol test; +#X obj 62 22 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577 +0; +#X text 67 77 author: mrtoftrash@gmail.com; +#X text 67 88 version: 2009-06-07 (initial release); +#X text 67 66 tags: list flow tof; +#X text 68 22 description: output the individual elements of a list +one after the other while simultaneously doing so with their indices. +; +#X connect 0 0 1 0; +#X connect 0 1 2 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 5 0 0 0; diff --git a/help/path-help.pd b/help/path-help.pd new file mode 100644 index 0000000..4c3cfc3 --- /dev/null +++ b/help/path-help.pd @@ -0,0 +1,94 @@ +#N canvas 0 24 1018 689 10; +#X obj 54 585 print RESULT; +#X obj 54 334 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 95 353 samples/; +#X msg 113 509 C:/Documents and Settings/tom/My Documents/pd/parent.test.pd +; +#X obj 54 558 path; +#X obj 52 12 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577 +0; +#X text 57 57 author: mrtoftrash@gmail.com; +#X text 57 68 version: 2009-06-07 (initial release); +#X text 79 330 <- a bang will output the root patch's path; +#X text 159 352 <- Sending a relative path will append that path to +the root patch's path; +#X text 113 427 Linux and OS X; +#X text 120 467 Windows; +#X msg 114 448 /unchanged/because/of/the/slash/at/the/start; +#X msg 113 487 C:/unchanged/because/of/the/:/as/second/char; +#X obj 544 44 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 593 158 samples/; +#X text 569 42 <- a bang will output the root patch's path; +#X obj 570 112 openpanel; +#X obj 570 92 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 +-1; +#X symbolatom 570 134 50 0 0 0 - - -; +#X symbolatom 544 233 50 0 0 0 - - -; +#X text 575 60 Anything else will be treated as a path; +#X obj 544 202 path relative; +#X text 653 156 <- Relative paths are unchanged; +#X text 111 414 Absolute paths are unchanged; +#X obj 545 282 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 545 395 print CURRENT; +#X obj 545 368 path current; +#X text 575 282 <- a bang will output the current patch's path; +#X text 58 12 description: outputs or transform paths.; +#X text 57 46 tags: file tof; +#X text 49 114 [path] can convert relative paths to absolute paths +or the other way around. The base path can be either the path of the +current patch \, or the path of the root patch.; +#X text 196 157 -- keywords --; +#X text 47 220 current: use the current patch's path (instead of using +the root patch's path).; +#X text 47 254 relative: transform absolute paths into relative paths +(instead of the other way around).; +#X text 177 306 -- default behavior --; +#X text 710 260 -- current --; +#X msg 573 315 samples/; +#X text 637 314 <- Sending a relative path will append that path to +the current patch's path; +#X text 685 9 -- relative --; +#X obj 545 455 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 594 569 samples/; +#X obj 571 523 openpanel; +#X obj 571 503 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 +-1 -1; +#X symbolatom 571 545 50 0 0 0 - - -; +#X symbolatom 545 634 50 0 0 0 - - -; +#X text 576 471 Anything else will be treated as a path; +#X text 654 567 <- Relative paths are unchanged; +#X text 680 427 -- relative & current --; +#X obj 545 603 path relative current; +#X text 48 176 You can use the "current" and "relative" keywords to +change the default behavior. The order of the keywords is not important. +; +#X text 570 453 <- a bang will output the current patch's path; +#X text 591 82 Absolute paths will be made relative to the root patch's +path; +#X text 596 494 Absolute paths will be made relative to the current +patch's path; +#X connect 1 0 4 0; +#X connect 2 0 4 0; +#X connect 3 0 4 0; +#X connect 4 0 0 0; +#X connect 12 0 4 0; +#X connect 13 0 4 0; +#X connect 14 0 22 0; +#X connect 15 0 22 0; +#X connect 17 0 19 0; +#X connect 18 0 17 0; +#X connect 19 0 22 0; +#X connect 22 0 20 0; +#X connect 25 0 27 0; +#X connect 27 0 26 0; +#X connect 37 0 27 0; +#X connect 40 0 49 0; +#X connect 41 0 49 0; +#X connect 42 0 44 0; +#X connect 43 0 42 0; +#X connect 44 0 49 0; +#X connect 49 0 45 0; diff --git a/help/streamMinMax-help.pd b/help/streamMinMax-help.pd new file mode 100644 index 0000000..a9a613d --- /dev/null +++ b/help/streamMinMax-help.pd @@ -0,0 +1,28 @@ +#N canvas 425 210 412 446 10; +#X obj 118 267 streamMinMax; +#X floatatom 82 146 5 0 0 0 - - -; +#X obj 199 195 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 +-1 -1; +#X floatatom 118 297 5 0 0 0 minimum - -; +#X floatatom 188 322 5 0 0 0 maximum - -; +#X text 216 193 reset; +#X text 61 124 number stream; +#X obj 2 -43 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577 +0; +#X text 7 1 author: mrtoftrash@gmail.com; +#X text 7 -44 description: outputs the minimum and maximum float of +a stream of numbers.; +#X text 7 -10 tags: stream; +#X text 7 12 version: 2009-05-07 (initial release); +#X obj 9 95 streamMinMax 45 100; +#X text 210 145 set minimum and maximum; +#X text 4 74 Argument 2: maximum value at start (defaults to none) +; +#X text 4 59 Argument 1: minimum value at start (defaults to none) +; +#X msg 168 144 43 90; +#X connect 0 0 3 0; +#X connect 0 1 4 0; +#X connect 1 0 0 0; +#X connect 2 0 0 0; +#X connect 16 0 0 0; diff --git a/help/wrapper-help.pd b/help/wrapper-help.pd new file mode 100644 index 0000000..06abf4d --- /dev/null +++ b/help/wrapper-help.pd @@ -0,0 +1,27 @@ +#N canvas 226 243 486 349 10; +#X text 114 176 Wraps between 0 and 1 by default; +#X text 137 276 This instance wraps the input between 2 and 8; +#X floatatom 52 205 5 0 0 0 - - -; +#X floatatom 50 138 5 0 0 0 - - -; +#X floatatom 91 138 5 0 0 0 - - -; +#X floatatom 134 140 5 0 0 0 - - -; +#X floatatom 50 242 5 0 0 0 - - -; +#X floatatom 92 243 5 0 0 0 - - -; +#X floatatom 136 242 5 0 0 0 - - -; +#X floatatom 50 306 5 0 0 0 - - -; +#X obj 52 177 wrapper; +#X obj 50 277 wrapper 2 8; +#X obj 42 2 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577 +0; +#X text 47 36 author: mrtoftrash@gmail.com; +#X text 48 2 description: wraps a number around a range; +#X text 47 47 version: 2009-06-07 (initial release); +#X text 47 25 tags: math range tof; +#X connect 3 0 10 0; +#X connect 4 0 10 1; +#X connect 5 0 10 2; +#X connect 6 0 11 0; +#X connect 7 0 11 1; +#X connect 8 0 11 2; +#X connect 10 0 2 0; +#X connect 11 0 9 0; -- cgit v1.2.1