[PD-cvs] SF.net SVN: pure-data: [10080] trunk/externals/mapping

nusmuk at users.sourceforge.net nusmuk at users.sourceforge.net
Tue Jun 24 15:31:33 CEST 2008


Revision: 10080
          http://pure-data.svn.sourceforge.net/pure-data/?rev=10080&view=rev
Author:   nusmuk
Date:     2008-06-24 06:31:33 -0700 (Tue, 24 Jun 2008)

Log Message:
-----------
add curve_draw. it allow to draw the in / out relation in a table

Added Paths:
-----------
    trunk/externals/mapping/curve_draw.pd
    trunk/externals/mapping/help/curve_draw-help.pd

Added: trunk/externals/mapping/curve_draw.pd
===================================================================
--- trunk/externals/mapping/curve_draw.pd	                        (rev 0)
+++ trunk/externals/mapping/curve_draw.pd	2008-06-24 13:31:33 UTC (rev 10080)
@@ -0,0 +1,83 @@
+#N canvas 708 208 635 480 10;
+#N canvas 0 0 450 300 (subpatch) 0;
+#X array \$0-array 100 float 1;
+#A 0 -1 -0.98 -0.96 -0.94 -0.92 -0.9 -0.88 -0.86 -0.84 -0.82 -0.8 -0.78
+-0.76 -0.74 -0.72 -0.7 -0.68 -0.66 -0.64 -0.62 -0.6 -0.58 -0.56 -0.54
+-0.52 -0.5 -0.48 -0.46 -0.44 -0.42 -0.4 -0.38 -0.36 -0.34 -0.32 -0.3
+-0.28 -0.26 -0.24 -0.22 -0.2 -0.18 -0.16 -0.14 -0.12 -0.1 -0.08 -0.06
+-0.04 -0.02 0 0.02 0.04 0.0599999 0.08 0.1 0.12 0.14 0.16 0.18 0.2
+0.22 0.24 0.26 0.28 0.3 0.32 0.34 0.36 0.38 0.4 0.42 0.44 0.46 0.48
+0.5 0.52 0.54 0.56 0.58 0.6 0.62 0.64 0.66 0.68 0.7 0.72 0.74 0.76
+0.78 0.8 0.82 0.84 0.86 0.88 0.9 0.92 0.94 0.96 0.98;
+#X coords 0 1 99 -1 100 100 1;
+#X restore 200 130 graph;
+#X obj 303 130 bng 15 250 50 0 empty empty empty 17 7 0 10 -258113
+-1 -1;
+#X text 320 128 save;
+#X obj 303 148 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1
+-1;
+#X text 320 149 load;
+#X obj 303 381 getdir 1;
+#X obj 368 80 loadbang;
+#X obj 148 306 tabread \$0-array;
+#X obj 387 271 s \$0-array;
+#X msg 387 250 resize \$1;
+#X obj 387 147 moses 0;
+#X obj 387 126 \$2;
+#X msg 387 167 100;
+#X obj 357 290 getdir 1;
+#X obj 109 57 inlet;
+#X obj 109 257 *;
+#X obj 387 208 f;
+#X obj 109 460 outlet;
+#X obj 148 327 + 1;
+#X obj 148 347 / 2;
+#X obj 109 279 moses 0;
+#X obj 109 366 tabread \$0-array;
+#X obj 109 387 + 1;
+#X obj 109 407 / 2;
+#X obj 109 305 * -1;
+#X obj 109 437 * -1;
+#X obj 407 313 symbol \$1;
+#X obj 357 339 pack s s;
+#X obj 303 400 pack s s;
+#X obj 426 170 min 100;
+#X obj 303 446 s \$0-array;
+#X msg 357 358 write \$1/\$2.txt;
+#X msg 303 419 read \$1/\$2.txt;
+#X obj 368 103 t b b b;
+#X connect 1 0 13 0;
+#X connect 3 0 5 0;
+#X connect 5 0 28 0;
+#X connect 6 0 33 0;
+#X connect 7 0 18 0;
+#X connect 9 0 8 0;
+#X connect 10 0 12 0;
+#X connect 10 1 29 0;
+#X connect 11 0 10 0;
+#X connect 12 0 16 0;
+#X connect 13 0 27 0;
+#X connect 14 0 15 0;
+#X connect 15 0 20 0;
+#X connect 16 0 9 0;
+#X connect 16 0 15 1;
+#X connect 18 0 19 0;
+#X connect 19 0 17 0;
+#X connect 20 0 24 0;
+#X connect 20 1 7 0;
+#X connect 21 0 22 0;
+#X connect 22 0 23 0;
+#X connect 23 0 25 0;
+#X connect 24 0 21 0;
+#X connect 25 0 17 0;
+#X connect 26 0 27 1;
+#X connect 26 0 28 1;
+#X connect 27 0 31 0;
+#X connect 28 0 32 0;
+#X connect 29 0 16 0;
+#X connect 31 0 30 0;
+#X connect 32 0 30 0;
+#X connect 33 0 3 0;
+#X connect 33 1 11 0;
+#X connect 33 2 26 0;
+#X coords 0 -1 1 1 150 130 1 200 100;

Added: trunk/externals/mapping/help/curve_draw-help.pd
===================================================================
--- trunk/externals/mapping/help/curve_draw-help.pd	                        (rev 0)
+++ trunk/externals/mapping/help/curve_draw-help.pd	2008-06-24 13:31:33 UTC (rev 10080)
@@ -0,0 +1,9 @@
+#N canvas 634 355 363 334 10;
+#X floatatom 34 126 5 0 0 0 - - -;
+#X floatatom 34 280 9 0 0 0 - - -;
+#X obj 34 144 curve_draw test 100;
+#X text 125 15 draw the in / out relation;
+#X text 31 51 arg 1 : name of the file to save the curve;
+#X text 31 64 arg 2 : size of the table;
+#X connect 0 0 2 0;
+#X connect 2 0 1 0;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list