Update of /cvsroot/pure-data/externals/hcs/hid In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15746
Modified Files: hid_polar.pd Added Files: hid_vector.pd Log Message: created object to calculate a vector based on dx/dy input; switched [hid_polar] to use this object as its core logic
Index: hid_polar.pd =================================================================== RCS file: /cvsroot/pure-data/externals/hcs/hid/hid_polar.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** hid_polar.pd 21 May 2005 02:41:51 -0000 1.2 --- hid_polar.pd 25 May 2005 19:10:48 -0000 1.3 *************** *** 1,3 **** ! #N canvas 328 234 468 411 10; #X obj 30 58 inlet; #X obj 25 313 outlet; --- 1,3 ---- ! #N canvas 189 157 472 415 10; #X obj 30 58 inlet; #X obj 25 313 outlet; *************** *** 10,18 **** #X text 29 29 x-axis value; #X text 221 26 y-axis value; - #X obj 25 282 / 1.41421; - #X text 92 282 (sqrt 2); - #X obj 104 220 cart2pol; - #X obj 223 85 t b f; - #X obj 29 180 f; #X obj 252 140 - 1; #X obj 252 120 * 2; --- 10,13 ---- *************** *** 24,41 **** #X text 28 357 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; - #X obj 231 280 rad2hid; #X text 23 331 radius; #X text 230 332 angle; ! #X connect 0 0 18 0; ! #X connect 6 0 13 0; ! #X connect 10 0 1 0; ! #X connect 12 0 10 0; ! #X connect 12 1 23 0; ! #X connect 13 0 14 0; ! #X connect 13 1 16 0; ! #X connect 14 0 12 0; ! #X connect 15 0 12 1; ! #X connect 16 0 15 0; ! #X connect 17 0 14 0; ! #X connect 18 0 17 0; ! #X connect 23 0 5 0; --- 19,31 ---- #X text 28 357 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X text 23 331 radius; #X text 230 332 angle; ! #X obj 88 218 hid_vector; ! #X connect 0 0 13 0; ! #X connect 6 0 11 0; ! #X connect 10 0 20 1; ! #X connect 11 0 10 0; ! #X connect 12 0 20 0; ! #X connect 13 0 12 0; ! #X connect 20 0 1 0; ! #X connect 20 1 5 0;
--- NEW FILE: hid_vector.pd --- #N canvas 711 171 484 427 10; #X obj 30 58 inlet; #X obj 25 313 outlet; #X text 73 313 output range: 0 to 1; #X obj 232 312 outlet; #X obj 224 56 inlet; #X text 29 29 x-axis value; #X text 221 26 y-axis value; #X obj 25 282 / 1.41421; #X text 92 282 (sqrt 2); #X obj 104 220 cart2pol; #X obj 224 85 t b f; #X obj 29 180 f; #X text 280 312 output range: 0 to 1; #X text 245 371 released under the GNU GPL; #X text 28 357 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X obj 231 280 rad2hid; #X text 11 5 [hid_vector]; #X text 72 57 input range: -1 to 1; #X text 264 57 input range: -1 to 1; #X text 230 332 direction; #X text 23 331 magnatude; #X connect 0 0 11 0; #X connect 4 0 10 0; #X connect 7 0 1 0; #X connect 9 0 7 0; #X connect 9 1 15 0; #X connect 10 0 11 0; #X connect 10 1 9 1; #X connect 11 0 9 0; #X connect 15 0 3 0;