Update of /cvsroot/pure-data/externals/mapping/help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22278/help
Added Files: autoscale-help.pd curve_exp-help.pd curve_graph-help.pd curve_log-help.pd debounce-help.pd degrees2mapping-help.pd disjoin-help.pd join-help.pd mapping2degrees-help.pd mapping2radians-help.pd polar-help.pd radians2mapping-help.pd reverse-help.pd segment-help.pd Log Message: this is the first checkin for the new mapping lib, which is a join effort of Cyrille and Hans. We are combining Cyrille's ds_/datastream classes with my hid_* classes, and I think Cyrille has drawn on the La-Kitchen classes for working with sensors.
--- NEW FILE: join-help.pd --- #N canvas 972 276 508 607 10; #X obj 82 37 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X obj 82 208 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X obj 161 208 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X obj 82 399 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X floatatom 197 342 5 0 0 0 - - -; #X obj 82 175 disjoin 0.3; #X obj 82 368 join 0.3; #X connect 0 0 5 0; #X connect 1 0 6 0; #X connect 2 0 6 1; #X connect 4 0 6 2; #X connect 5 0 1 0; #X connect 5 1 2 0; #X connect 6 0 3 0;
--- NEW FILE: reverse-help.pd --- #N canvas 550 202 473 316 10; #X obj 5 2 cnv 15 450 20 empty empty [reverse] 2 11 1 18 -233017 -66577 0; #X msg 422 3 pddp; #X text 27 270 (C) Copyright 2004 Hans-Christoph Steiner hans@at.or.at ; #X text 244 284 released under the GNU GPL; #X floatatom 153 90 5 0 0 0 - - -; #X floatatom 153 166 5 0 0 0 - - -; #X obj 156 71 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X obj 156 183 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X text 27 43 Inverts the stream of numbers.; #X text 98 233 For more info:; #X obj 202 231 pddp_open mapping-about; #X obj 153 126 reverse; #X connect 4 0 11 0; #X connect 5 0 7 0; #X connect 6 0 4 0; #X connect 11 0 5 0;
--- NEW FILE: curve_log-help.pd --- #N canvas 127 78 476 357 10; #X obj 5 2 cnv 15 450 20 empty empty [curve_log] 2 11 1 18 -233017 -66577 0; #X msg 422 3 pddp; #X text 27 300 (C) Copyright 2004 Hans-Christoph Steiner hans@at.or.at ; #X text 244 314 released under the GNU GPL; #X text 98 271 For more info:; #X obj 202 269 pddp_open all_about_curve_mapping; #X floatatom 25 123 8 0 0 0 - - -; #X floatatom 25 184 8 0 0 0 - - -; #X obj 28 201 hsl 200 15 0 1 0 0 empty empty empty 22 8 1 12 -262144 -1 -1 0 1; #X obj 28 103 hsl 200 15 0 1 0 0 empty empty empty 22 8 1 12 -261681 -1 -1 0 1; #N canvas 0 22 450 300 graph1 0; #X array curve_log 100 float 0; #X coords 0 1 99 0 100 100 1; #X restore 321 111 graph; #N canvas 266 69 335 325 draw_array 0; #X msg 57 52 bang; #X obj 57 73 until; #X text 88 52 start; #X obj 57 95 f; #X obj 86 95 + 1; #X obj 132 97 sel 0; #X obj 86 117 mod 100; #X obj 57 150 t f f; #X obj 94 177 s array_index; #X obj 170 262 r array_index; #X obj 57 13 loadbang; #X obj 57 207 / 100; #X text 99 207 [hid] output range: 0 to 1; #X obj 56 283 tabwrite curve_log; #X obj 56 233 curve_log; #X connect 0 0 1 0; #X connect 1 0 3 0; #X connect 3 0 4 0; #X connect 3 0 7 0; #X connect 4 0 6 0; #X connect 5 0 1 1; #X connect 6 0 3 1; #X connect 6 0 5 0; #X connect 7 0 11 0; #X connect 7 1 8 0; #X connect 9 0 13 1; #X connect 10 0 0 0; #X connect 11 0 14 0; #X connect 14 0 13 0; #X restore 321 78 pd draw_array; #X text 17 40 This object maps the input range to a logarithmic curve. Humans perceive pitch and amplitude on a logarithmic scale.; #X obj 25 153 curve_log; #X connect 6 0 13 0; #X connect 7 0 8 0; #X connect 9 0 6 0; #X connect 13 0 7 0;
--- NEW FILE: curve_exp-help.pd --- #N canvas 567 104 476 357 10; #X obj 5 2 cnv 15 450 20 empty empty [curve_exp] 2 11 1 18 -233017 -66577 0; #X msg 422 3 pddp; #X text 27 300 (C) Copyright 2004 Hans-Christoph Steiner hans@at.or.at ; #X text 244 314 released under the GNU GPL; #X text 98 271 For more info:; #X obj 202 269 pddp_open all_about_curve_mapping; #X floatatom 25 123 8 0 0 0 - - -; #X floatatom 25 184 8 0 0 0 - - -; #X obj 28 201 hsl 200 15 0 1 0 0 empty empty empty 22 8 1 12 -262144 -1 -1 0 1; #X obj 28 103 hsl 200 15 0 1 0 0 empty empty empty 22 8 1 12 -261681 -1 -1 0 1; #N canvas 0 22 450 300 graph1 0; #X array curve_exp 100 float 0; #X coords 0 1 99 0 100 100 1; #X restore 321 111 graph; #N canvas 266 69 331 321 draw_array 0; #X msg 57 52 bang; #X obj 57 73 until; #X text 88 52 start; #X obj 57 95 f; #X obj 86 95 + 1; #X obj 132 97 sel 0; #X obj 86 117 mod 100; #X obj 57 150 t f f; #X obj 94 177 s array_index; #X obj 170 262 r array_index; #X obj 57 13 loadbang; #X obj 57 207 / 100; #X text 99 207 [hid] output range: 0 to 1; #X obj 56 283 tabwrite curve_exp; #X obj 56 233 curve_exp; #X connect 0 0 1 0; #X connect 1 0 3 0; #X connect 3 0 4 0; #X connect 3 0 7 0; #X connect 4 0 6 0; #X connect 5 0 1 1; #X connect 6 0 3 1; #X connect 6 0 5 0; #X connect 7 0 11 0; #X connect 7 1 8 0; #X connect 9 0 13 1; #X connect 10 0 0 0; #X connect 11 0 14 0; #X connect 14 0 13 0; #X restore 321 78 pd draw_array; #X text 17 39 This object maps the input range to a exponential curve , the inverse of a logarithmic curve.; #X obj 25 153 curve_exp; #X connect 6 0 13 0; #X connect 7 0 8 0; #X connect 9 0 6 0; #X connect 13 0 7 0;
--- NEW FILE: mapping2radians-help.pd --- #N canvas 633 307 471 311 10; #X obj 5 2 cnv 15 450 20 empty empty [hid2rad] 2 11 1 18 -233017 -66577 0; #X msg 422 3 pddp; #X text 254 269 released under the GNU GPL; #X text 185 228 For more info:; #X obj 289 226 pddp_open mapping-about; #X text 40 254 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X text 300 168 related objects:; #X obj 273 184 rad2hid; #X obj 332 184 deg2hid; #X obj 391 184 hid2deg; #X obj 69 150 hid2rad; #X floatatom 69 185 9 0 0 1 radians - -; #X obj 72 85 hsl 128 15 0 1 0 0 empty empty hid 6 7 1 10 -262131 -1 -1 0 0; #X floatatom 95 115 5 0 0 0 - - -; #X text 26 34 This object converts numbers from the [hid] range (0 to 1) to radians (-pi to pi) with the 0's lining up in the same place. ; #X connect 10 0 11 0; #X connect 12 0 13 0; #X connect 12 0 10 0;
--- NEW FILE: segment-help.pd --- #N canvas 15 380 668 314 10; #X obj 62 198 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 11010 1; #X obj 195 198 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 97 1; #X obj 328 198 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 21 1; #X obj 461 198 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 8322 1; #X obj 62 28 hsl 527 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 11400 1; #X msg 189 88 2; #X msg 250 87 6; #X msg 219 87 4; #X floatatom 60 222 5 0 0 0 - - -; #X floatatom 196 220 5 0 0 0 - - -; #X floatatom 328 222 5 0 0 0 - - -; #X floatatom 459 220 5 0 0 0 - - -; #X floatatom 46 51 5 0 0 0 - - -; #X obj 154 123 segment 4; #X connect 0 0 8 0; #X connect 1 0 9 0; #X connect 2 0 10 0; #X connect 3 0 11 0; #X connect 4 0 12 0; #X connect 4 0 13 0; #X connect 5 0 13 1; #X connect 6 0 13 1; #X connect 7 0 13 1; #X connect 13 0 0 0; #X connect 13 1 1 0; #X connect 13 2 2 0; #X connect 13 3 3 0;
--- NEW FILE: disjoin-help.pd --- #N canvas 759 140 610 671 10; #X obj 33 34 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X obj 33 205 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X obj 112 205 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X obj 33 396 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X floatatom 134 339 5 0 0 0 - - -; #X obj 33 175 disjoin 0.3; #X obj 33 364 join 0.3; #X connect 0 0 5 0; #X connect 1 0 6 0; #X connect 2 0 6 1; #X connect 4 0 6 2; #X connect 5 0 1 0; #X connect 5 1 2 0; #X connect 6 0 3 0;
--- NEW FILE: radians2mapping-help.pd --- #N canvas 168 236 533 333 10; #X obj 5 2 cnv 15 450 20 empty empty [rad2hid] 2 11 1 18 -233017 -66577 0; #X msg 422 3 pddp; #X text 254 269 released under the GNU GPL; #X text 144 228 For more info:; #X text 40 254 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X text 254 186 related objects:; #X floatatom 69 195 5 0 0 1 hid - -; #X obj 72 95 hsl 128 15 -3.14159 3.14159 0 0 empty empty radians 6 7 1 10 -262131 -1 -1 0 0; #X floatatom 95 125 9 0 0 0 - - -; #X obj 69 160 rad2hid; #X text 21 35 This object converts numbers from radians (-pi to pi) to the [hid] range (0 to 1) with the 0's lining up in the same place. ; #X obj 252 202 radians2mapping; #X obj 140 202 degrees2mapping; #X obj 365 202 mapping2degrees; #X obj 248 226 pddp_open mapping-about; #X connect 7 0 8 0; #X connect 7 0 9 0; #X connect 9 0 6 0;
--- NEW FILE: autoscale-help.pd --- #N canvas 229 80 464 537 10; #X floatatom 26 76 5 0 0 0 - - -; #X floatatom 26 140 0 0 0 0 - - -; #X obj 68 258 autoscale; #X obj 2 -10 cnv 15 450 20 empty empty [autoscale] 2 11 1 18 -233017 -66577 0; #X text 18 23 [autoscale] scales a stream of numbers based on an output range set as arguments , and an input range which is set dynamically. ; #X floatatom 68 237 5 0 0 0 - - -; #X obj 71 281 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X text 17 441 (C) Copyright 2004 Hans-Christoph Steiner hans@at.or.at ; #X text 234 455 released under the GNU GPL; #X floatatom 150 140 0 0 0 0 - - -; #X floatatom 297 140 0 0 0 0 - - -; #X obj 213 71 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X text 17 474 $Revision: 1.1 $$Date: 2006/01/29 05:43:33 $; #X text 18 487 $Author: eighthave $; #X text 25 324 The [reset( message resets the stored max and min to zero.; #X floatatom 46 348 5 0 0 0 - - -; #X obj 71 401 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X msg 96 346 reset; #X obj 150 110 autoscale -0.01 0.01; #X obj 297 110 autoscale -4095 4095; #X obj 68 378 autoscale; #X text 13 181 If you use [autoscale] with no arguments , then the output range defaults to 0-1.; #X obj 26 110 autoscale; #X connect 0 0 22 0; #X connect 2 0 6 0; #X connect 5 0 2 0; #X connect 11 0 18 0; #X connect 11 0 19 0; #X connect 15 0 20 0; #X connect 17 0 20 0; #X connect 18 0 9 0; #X connect 19 0 10 0; #X connect 20 0 16 0; #X connect 22 0 1 0;
--- NEW FILE: mapping2degrees-help.pd --- #N canvas 589 387 483 323 10; #X obj 5 2 cnv 15 450 20 empty empty [hid2deg] 2 11 1 18 -233017 -66577 0; #X msg 422 3 pddp; #X text 254 269 released under the GNU GPL; #X text 185 228 For more info:; #X obj 289 226 pddp_open mapping-about; #X text 40 254 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X text 300 168 related objects:; #X obj 333 184 rad2hid; #X obj 392 184 deg2hid; #X floatatom 69 185 7 0 0 1 degrees - -; #X obj 72 85 hsl 128 15 0 1 0 0 empty empty hid 6 7 1 10 -262131 -1 -1 500 0; #X floatatom 95 115 5 0 0 0 - - -; #X obj 274 184 hid2rad; #X obj 69 150 hid2deg; #X text 26 34 This object converts numbers from the [hid] range (0 to 1) to degrees (0 to 360) with the 0 being north.; #X connect 10 0 11 0; #X connect 10 0 13 0; #X connect 13 0 9 0;
--- NEW FILE: polar-help.pd --- #N canvas 601 232 482 455 10; #X obj 5 2 cnv 15 450 20 empty empty [hid_polar] 2 11 1 18 -233017 -66577 0; #X msg 422 3 pddp; #X text 244 411 released under the GNU GPL; #X floatatom 100 248 5 0 0 0 - - -; #X floatatom 100 335 7 0 0 0 radius-> - -; #X text 124 370 For more info:; #X obj 228 368 pddp_open mapping-about; #X obj 100 295 hid_polar; #X text 27 397 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X obj 101 161 hsl 128 15 0 1 0 0 empty empty x-axis 133 7 1 10 -225280 -1 -1 0 0; #X obj 157 103 vsl 15 128 0 1 0 0 empty empty y-axis -6 -9 1 10 -261681 -1 -1 0 0; #X floatatom 159 335 7 0 0 1 <-angle - -; #X floatatom 158 248 5 0 0 0 - - -; #X obj 157 265 t b f; #X obj 334 335 polar-joystick; #X text 275 273 related objects:; #X text 273 334 example:; #X msg 97 86 0.5; #X text 43 86 center:; #X text 17 29 Converts cartesian coordinates(x , y) to polar coordinates (radius , angle). The angle is in radians (-pi to pi). The angle 0 is at cartesian (1 , 0.5) or to the right.; #X obj 361 293 hid_spiral; #X obj 245 293 hid2rad; #X obj 303 293 hid2deg; #X connect 3 0 7 0; #X connect 7 0 4 0; #X connect 7 1 11 0; #X connect 9 0 3 0; #X connect 10 0 12 0; #X connect 12 0 13 0; #X connect 13 0 3 0; #X connect 13 1 7 1; #X connect 17 0 9 0; #X connect 17 0 10 0;
--- NEW FILE: degrees2mapping-help.pd --- #N canvas 82 386 483 323 10; #X obj 5 2 cnv 15 450 20 empty empty [deg2hid] 2 11 1 18 -233017 -66577 0; #X msg 422 3 pddp; #X text 254 269 released under the GNU GPL; #X text 185 228 For more info:; #X obj 289 226 pddp_open mapping-about; #X text 40 254 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X text 300 168 related objects:; #X obj 333 184 rad2hid; #X floatatom 56 203 7 0 0 1 - - -; #X obj 59 103 hsl 300 15 -720 720 0 0 empty empty degrees 6 7 1 10 -262131 -1 -1 3100 0; #X floatatom 82 133 5 0 0 0 - - -; #X text 26 34 This object converts numbers from the [hid] range (0 to 1) to radians (-pi to pi) with the 0's lining up in the same place. ; #X obj 274 184 hid2rad; #X obj 392 184 hid2deg; #X obj 56 168 deg2hid; #X connect 9 0 10 0; #X connect 9 0 14 0; #X connect 14 0 8 0;
--- NEW FILE: debounce-help.pd --- #N canvas 429 170 470 540 10; #X obj 2 2 cnv 15 450 20 empty empty [debounce] 2 11 1 18 -233017 -66577 0; #X msg 418 3 pddp; #X text 234 467 released under the GNU GPL; #X text 17 486 $Revision: 1.1 $$Date: 2006/01/29 05:43:33 $; #X text 18 499 $Author: eighthave $; #X text 17 453 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X obj 122 78 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1; #X obj 123 102 t b b; #X obj 123 142 delay; #X obj 63 121 bang; #X obj 122 202 tgl 35 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X floatatom 166 203 5 0 0 0 - - -; #X obj 122 271 tgl 35 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X obj 123 166 random 2; #X msg 85 78 stop; #X obj 244 211 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 240 277 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X text 26 387 Right now , it handles "floats" and "bangs". Everything else is converted to a "bang".; #X obj 152 122 random 1000; #X obj 237 247 debounce 900; #X obj 122 246 debounce 900; #X connect 6 0 7 0; #X connect 7 0 8 0; #X connect 7 1 18 0; #X connect 8 0 9 0; #X connect 8 0 13 0; #X connect 8 0 15 0; #X connect 9 0 7 0; #X connect 10 0 20 0; #X connect 13 0 10 0; #X connect 13 0 11 0; #X connect 14 0 8 0; #X connect 15 0 19 0; #X connect 18 0 8 1; #X connect 19 0 16 0; #X connect 20 0 12 0;
--- NEW FILE: curve_graph-help.pd --- #N canvas 61 248 495 470 10; #X obj 5 2 cnv 15 450 20 empty empty [curve_graph] 2 11 1 18 -233017 -66577 0; #X msg 422 3 pddp; #X text 27 410 (C) Copyright 2004 Hans-Christoph Steiner hans@at.or.at ; #X text 244 424 released under the GNU GPL; #X text 98 381 For more info:; #X obj 202 379 pddp_open all_about_curve_mapping; #X msg 19 150 reset; #X floatatom 95 163 5 0 0 0 - - -; #X floatatom 94 314 5 0 0 0 - - -; #X obj 97 331 hsl 250 15 0 1 0 0 empty empty empty 22 8 1 12 -262144 -1 -1 0 1; #X obj 98 143 hsl 250 15 0 1 0 0 empty empty empty 22 8 1 12 -261681 -1 -1 0 1; #X obj 94 187 curve_graph; #X text 18 33 This object allows you to draw an arbitrary curve , which is then applied to the input range. To change the curve , click anywhere on the black diagonal line and start dragging.; #X text 19 86 There are 100 points in [curve_graph] , each one pixel in size.; #X connect 6 0 11 0; #X connect 7 0 11 0; #X connect 8 0 9 0; #X connect 10 0 7 0; #X connect 11 0 8 0;