From 0ca6f43514c11e30d76618be69fcb995b926d0d5 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 21 Feb 2010 05:08:54 +0000 Subject: ported to new template Makefile and debianized it svn path=/trunk/externals/moonlib/; revision=13184 --- tabsort-help.pd | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tabsort-help.pd (limited to 'tabsort-help.pd') diff --git a/tabsort-help.pd b/tabsort-help.pd new file mode 100644 index 0000000..805f12a --- /dev/null +++ b/tabsort-help.pd @@ -0,0 +1,32 @@ +#N canvas 118 208 534 360 10; +#X text 22 332 (c) Antoine Rousseau 2001; +#X floatatom 39 303 5 0 0 0 - - -; +#X obj 21 19 tabsort; +#X text 20 58 args: source_table dest_table; +#N canvas 0 0 450 300 graph29 0; +#X array source 10 float 1; +#A 0 -0.0571429 -0.985715 -0.942858 -0.857143 -0.757143 -0.542857 -0.171429 +0.528571 0.842858 0.914287; +#X coords 0 1 9 -1 200 140 1; +#X restore 51 92 graph; +#N canvas 0 0 450 300 graph29 0; +#X array dest 10 float 1; +#A 0 9 8 7 0 6 5 4 3 2 1; +#X coords 0 10 9 0 200 140 1; +#X restore 304 89 graph; +#X obj 39 282 tabsort source dest; +#X msg 39 262 10; +#X text 79 12 write to dest_table the indices of source_table's elements +sorted by decreasing order (biggest first); +#X text 38 248 sort the n first elements; +#X obj 304 264 tabread dest; +#X obj 304 285 tabread source; +#X floatatom 304 246 5 0 0 0 - - -; +#X floatatom 304 305 5 0 0 0 - - -; +#X text 347 244 try it!; +#X text 300 321 it should decrease with input; +#X connect 6 0 1 0; +#X connect 7 0 6 0; +#X connect 10 0 11 0; +#X connect 11 0 13 0; +#X connect 12 0 10 0; -- cgit v1.2.1