Update of /cvsroot/pure-data/externals/hcs/hid In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4973
Modified Files: hid_graph.pd Added Files: hid_cube-help.pd hid_cuberoot-help.pd hid_exp-help.pd hid_graph-help.pd hid_log-help.pd hid_square-help.pd hid_squareroot-help.pd Log Message: got [hid_graph] fully functional; added helpfiles for all curve objects
Index: hid_graph.pd =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/hid_graph.pd,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** hid_graph.pd 21 May 2005 02:41:51 -0000 1.6 --- hid_graph.pd 24 May 2005 00:39:31 -0000 1.7 *************** *** 1,43 **** ! #N canvas 606 208 515 544 10; ! #X obj 20 178 inlet; #N canvas 0 22 466 316 graph5 0; ! #X array $0-hid 100 float 2; #X coords 0 1 100 0 100 100 1; ! #X restore -1 20 graph; ! #X obj 115 368 outlet; ! #X text 155 301 gives a range of 0-100; ! #X text 162 369 output range 0 to 1; ! #X obj 115 323 tabread $0-hid_graph_array; ! #X text -4 157 [hid_graph]; ! #X obj 115 300 * 100; ! #X text 60 180 input range: 0 to 1; ! #X obj 20 227 route reset; ! #X obj -8 370 f; ! #X obj -38 370 +; ! #X msg 6 338 0; ! #X msg -38 338 1; ! #X obj -38 454 / 100; ! #X obj -38 431 trigger f f; ! #X obj -38 486 tabwrite $0-hid_graph_array; ! #X floatatom 34 460 5 0 0 0 - - -; ! #X obj -62 312 until 100; ! #X obj -62 288 trigger bang bang; ! #X connect 0 0 9 0; ! #X connect 5 0 2 0; ! #X connect 7 0 5 0; ! #X connect 9 0 19 0; ! #X connect 9 1 7 0; ! #X connect 10 0 11 1; ! #X connect 11 0 15 0; ! #X connect 11 0 10 0; ! #X connect 12 0 10 1; ! #X connect 12 0 11 1; ! #X connect 13 0 11 0; ! #X connect 14 0 16 0; ! #X connect 15 0 14 0; ! #X connect 15 1 16 1; ! #X connect 15 1 17 0; ! #X connect 18 0 13 0; ! #X connect 19 0 18 0; ! #X connect 19 1 12 0; ! #X coords 0 0 1 1 120 120 1; --- 1,45 ---- ! #N canvas 606 208 100 116 10; ! #X obj 103 188 inlet; #N canvas 0 22 466 316 graph5 0; ! #X array $0_ 100 float 2; #X coords 0 1 100 0 100 100 1; ! #X restore 0 16 graph; ! #X obj 198 378 outlet; ! #X text 238 311 gives a range of 0-100; ! #X text 245 379 output range 0 to 1; ! #X text 79 167 [hid_graph]; ! #X obj 198 310 * 100; ! #X text 143 190 input range: 0 to 1; ! #X obj 103 237 route reset; ! #X obj 75 380 f; ! #X obj 45 380 +; ! #X msg 89 348 0; ! #X msg 45 348 1; ! #X obj 45 464 / 100; ! #X obj 45 441 trigger f f; ! #X obj 21 278 trigger bang bang; ! #X msg 21 303 100; ! #X obj 21 322 until; ! #X obj 198 333 tabread $0_; ! #X obj 45 496 tabwrite $0_; ! #X obj -7 229 loadbang; ! #X connect 0 0 8 0; ! #X connect 6 0 18 0; ! #X connect 8 0 15 0; ! #X connect 8 1 6 0; ! #X connect 9 0 10 1; ! #X connect 10 0 14 0; ! #X connect 10 0 9 0; ! #X connect 11 0 9 1; ! #X connect 11 0 10 1; ! #X connect 12 0 10 0; ! #X connect 13 0 19 0; ! #X connect 14 0 13 0; ! #X connect 14 1 19 1; ! #X connect 15 0 16 0; ! #X connect 15 1 11 0; ! #X connect 16 0 17 0; ! #X connect 17 0 12 0; ! #X connect 18 0 2 0; ! #X connect 20 0 15 0; ! #X coords 0 0 1 1 100 116 1;
--- NEW FILE: hid_square-help.pd --- #N canvas 556 145 476 357 10; #X obj 5 2 cnv 15 450 20 empty empty [hid_square] 2 11 1 18 -233017 -66577 0; #X obj 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_hid_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; #X obj 25 153 hid_square; #N canvas 0 22 450 300 graph1 0; #X array hid_square 100 float 0; #X coords 0 1 99 0 100 100 1; #X restore 321 111 graph; #N canvas 266 69 327 317 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 233 hid_square; #X obj 56 283 tabwrite hid_square; #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 14 1; #X connect 10 0 0 0; #X connect 11 0 13 0; #X connect 13 0 14 0; #X restore 321 78 pd draw_array; #X text 15 34 This object maps the input range to a square curve , i.e. [pow 2] , "X squared" , or X^2.; #X connect 6 0 10 0; #X connect 7 0 8 0; #X connect 9 0 6 0; #X connect 10 0 7 0;
--- NEW FILE: hid_squareroot-help.pd --- #N canvas 416 140 476 357 10; #X obj 5 2 cnv 15 450 20 empty empty [hid_squareroot] 2 11 1 18 -233017 -66577 0; #X obj 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_hid_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; #X obj 25 153 hid_squareroot; #N canvas 0 22 450 300 graph1 0; #X array hid_squareroot 100 float 0; #X coords 0 1 99 0 100 100 1; #X restore 321 111 graph; #N canvas 266 69 327 317 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 233 hid_squareroot; #X obj 56 283 tabwrite hid_squareroot; #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 14 1; #X connect 10 0 0 0; #X connect 11 0 13 0; #X connect 13 0 14 0; #X restore 321 78 pd draw_array; #X text 15 34 This object maps the input range to a square root curve , i.e. [pow 0.5] , "square root of X" , or X^0.5.; #X connect 6 0 10 0; #X connect 7 0 8 0; #X connect 9 0 6 0; #X connect 10 0 7 0;
--- NEW FILE: hid_cube-help.pd --- #N canvas 556 145 472 353 10; #X obj 5 2 cnv 15 450 20 empty empty [hid_graph] 2 11 1 18 -233017 -66577 0; #X obj 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_hid_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; #X obj 25 153 hid_cube; #X text 15 34 This object maps the input range to a cube curve , i.e. [pow 3] or "X to power of 3".; #N canvas 0 22 450 300 graph1 0; #X array hid_cube 100 float 0; #X coords 0 1 99 0 100 100 1; #X restore 321 111 graph; #N canvas 266 69 327 317 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 233 hid_cube; #X obj 56 283 tabwrite hid_cube; #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 14 1; #X connect 10 0 0 0; #X connect 11 0 13 0; #X connect 13 0 14 0; #X restore 321 78 pd draw_array; #X connect 6 0 10 0; #X connect 7 0 8 0; #X connect 9 0 6 0; #X connect 10 0 7 0;
--- NEW FILE: hid_exp-help.pd --- #N canvas 567 104 472 353 10; #X obj 5 2 cnv 15 450 20 empty empty [hid_exp] 2 11 1 18 -233017 -66577 0; #X obj 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_hid_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; #X obj 25 153 hid_exp; #N canvas 0 22 450 300 graph1 0; #X array hid_exp 100 float 0; #X coords 0 1 99 0 100 100 1; #X restore 321 111 graph; #N canvas 266 69 327 317 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 233 hid_exp; #X obj 56 283 tabwrite hid_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 14 1; #X connect 10 0 0 0; #X connect 11 0 13 0; #X connect 13 0 14 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 connect 6 0 10 0; #X connect 7 0 8 0; #X connect 9 0 6 0; #X connect 10 0 7 0;
--- NEW FILE: hid_cuberoot-help.pd --- #N canvas 416 140 464 319 10; #X obj 5 2 cnv 15 450 20 empty empty [hid_cuberoot] 2 11 1 18 -233017 -66577 0; #X obj 422 3 pddp; #X text 27 280 (C) Copyright 2004 Hans-Christoph Steiner hans@at.or.at ; #X text 244 294 released under the GNU GPL; #X text 98 251 For more info:; #X obj 202 249 pddp_open all_about_hid_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; #X obj 25 153 hid_cuberoot; #N canvas 0 22 450 300 graph1 0; #X array hid_cuberoot 100 float 0; #X coords 0 1 99 0 100 100 1; #X restore 321 111 graph; #N canvas 266 69 327 317 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 233 hid_cuberoot; #X obj 56 283 tabwrite hid_cuberoot; #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 14 1; #X connect 10 0 0 0; #X connect 11 0 13 0; #X connect 13 0 14 0; #X restore 321 78 pd draw_array; #X text 15 34 This object maps the input range to a cube root curve , i.e. [pow 0.333333] , "cube root of X" , or X^0.333333.; #X connect 6 0 10 0; #X connect 7 0 8 0; #X connect 9 0 6 0; #X connect 10 0 7 0;
--- NEW FILE: hid_log-help.pd --- #N canvas 567 104 472 353 10; #X obj 5 2 cnv 15 450 20 empty empty [hid_log] 2 11 1 18 -233017 -66577 0; #X obj 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_hid_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; #X obj 25 153 hid_log; #N canvas 0 22 450 300 graph1 0; #X array hid_log 100 float 0; #X coords 0 1 99 0 100 100 1; #X restore 321 111 graph; #N canvas 266 69 327 317 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 233 hid_log; #X obj 56 283 tabwrite hid_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 14 1; #X connect 10 0 0 0; #X connect 11 0 13 0; #X connect 13 0 14 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 connect 6 0 10 0; #X connect 7 0 8 0; #X connect 9 0 6 0; #X connect 10 0 7 0;
--- NEW FILE: hid_graph-help.pd --- #N canvas 61 248 495 470 10; #X obj 5 2 cnv 15 450 20 empty empty [hid_graph] 2 11 1 18 -233017 -66577 0; #X obj 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_hid_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 hid_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 [hid_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;