From c37112a7f380d81e4ce6a1cb8446bea3994dfaf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 14 Mar 2007 09:08:56 +0000 Subject: updated the zexy help-system: all reference-patches (aka help-patches) are now to be found in the ./reference/ folder and are named -help.pd; removed a now superfluous class_sethelpsymbol from ./src/*.c; the ./examples/ folder is currently empty but will eventually be filled with zexy real-world examples svn path=/trunk/externals/zexy/; revision=7485 --- reference/sort-help.pd | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 reference/sort-help.pd (limited to 'reference/sort-help.pd') diff --git a/reference/sort-help.pd b/reference/sort-help.pd new file mode 100644 index 0000000..b6d80a4 --- /dev/null +++ b/reference/sort-help.pd @@ -0,0 +1,85 @@ +#N canvas 137 350 811 532 10; +#X obj 95 233 print UNSORTED; +#X msg 37 107 bang; +#X obj 198 23 sort; +#X text 314 87 any package-elements that are non-float will be interpreted +as "0.0".; +#X text 270 87 note :; +#X obj 56 335 sort 1; +#X obj 56 467 print ASCENDING; +#X obj 37 377 sort -1; +#X obj 37 487 print DESCENDING; +#X text 278 297 creation : "sort []"; +#X text 457 310 dir < 0 :: descending sort; +#X text 456 297 dir >= 0 :: ascending sort; +#X text 460 328 dir defaults to ascending; +#N canvas 360 175 475 254 randompackage 0; +#X obj 37 190 pack 0 0 0 0 0 0 0 0 0 0 0; +#X obj 170 87 random 15; +#X obj 156 104 random 15; +#X obj 143 121 random 15; +#X obj 130 138 random 15; +#X obj 116 155 random 15; +#X obj 103 172 random 15; +#X obj 90 87 random 15; +#X obj 76 104 random 15; +#X obj 63 121 random 15; +#X obj 50 138 random 15; +#X obj 37 155 random 15; +#X obj 37 52 inlet; +#X obj 37 69 t b b b b b b b b b b b; +#X obj 37 210 outlet; +#X connect 0 0 14 0; +#X connect 1 0 0 10; +#X connect 2 0 0 9; +#X connect 3 0 0 8; +#X connect 4 0 0 7; +#X connect 5 0 0 6; +#X connect 6 0 0 5; +#X connect 7 0 0 4; +#X connect 8 0 0 3; +#X connect 9 0 0 2; +#X connect 10 0 0 1; +#X connect 11 0 0 0; +#X connect 12 0 13 0; +#X connect 13 0 11 0; +#X connect 13 1 10 0; +#X connect 13 2 9 0; +#X connect 13 3 8 0; +#X connect 13 4 7 0; +#X connect 13 5 6 0; +#X connect 13 6 5 0; +#X connect 13 7 4 0; +#X connect 13 8 3 0; +#X connect 13 9 2 0; +#X connect 13 10 1 0; +#X restore 37 195 pd randompackage; +#X msg 72 160 -----; +#X obj 37 141 t b b; +#X floatatom 94 268 0 0 0 0 - - -; +#X text 128 270 direction; +#X obj 37 213 t l l l l; +#X obj 75 287 sort; +#X obj 75 448 print SORTED; +#X text 237 23 shell-sort a package of floats; +#X text 553 16 part of zexy; +#X obj 81 402 print indicesD; +#X obj 93 357 print indicesA; +#X obj 72 177 print -----; +#X text 269 162 the second outlet gives the indices of the input data. +; +#X connect 1 0 15 0; +#X connect 5 0 6 0; +#X connect 5 1 24 0; +#X connect 7 0 8 0; +#X connect 7 1 23 0; +#X connect 13 0 18 0; +#X connect 14 0 25 0; +#X connect 15 0 13 0; +#X connect 15 1 14 0; +#X connect 16 0 19 1; +#X connect 18 0 7 0; +#X connect 18 1 5 0; +#X connect 18 2 19 0; +#X connect 18 3 0 0; +#X connect 19 0 20 0; -- cgit v1.2.1