From e867acaf2ed863379d3d81623f0a46003524b0ce Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 25 May 2005 19:10:48 +0000 Subject: created object to calculate a vector based on dx/dy input; switched [hid_polar] to use this object as its core logic svn path=/trunk/externals/hcs/hid/; revision=3087 --- hid_polar.pd | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to 'hid_polar.pd') diff --git a/hid_polar.pd b/hid_polar.pd index 0a3a424..36fa718 100644 --- a/hid_polar.pd +++ b/hid_polar.pd @@ -1,4 +1,4 @@ -#N canvas 328 234 468 411 10; +#N canvas 189 157 472 415 10; #X obj 30 58 inlet; #X obj 25 313 outlet; #X text 73 313 output range: 0 to 1; @@ -9,11 +9,6 @@ #X text 264 57 input range: 0 to 1; #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; #X obj 29 140 - 1; @@ -23,19 +18,14 @@ #X text 245 371 released under the GNU GPL; #X text 28 357 (C) Copyright 2005 Hans-Christoph Steiner ; -#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; +#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; -- cgit v1.2.1