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_vector.pd | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 hid_vector.pd (limited to 'hid_vector.pd') diff --git a/hid_vector.pd b/hid_vector.pd new file mode 100644 index 0000000..a27441e --- /dev/null +++ b/hid_vector.pd @@ -0,0 +1,32 @@ +#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 +; +#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; -- cgit v1.2.1