From c7a7ca12619fd3caec5fb5c61933a6c6034ae35e Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 17 Mar 2006 05:48:19 +0000 Subject: started to add the option to reverse the direction svn path=/trunk/externals/mapping/; revision=4734 --- pd/polar.pd | 42 +++++++++++++++++++++++------------------- polar.pd | 42 +++++++++++++++++++++++------------------- 2 files changed, 46 insertions(+), 38 deletions(-) diff --git a/pd/polar.pd b/pd/polar.pd index a982061..c438e14 100644 --- a/pd/polar.pd +++ b/pd/polar.pd @@ -1,12 +1,8 @@ -#N canvas 189 157 476 419 10; -#X obj 30 58 inlet; -#X obj 25 313 outlet; -#X text 73 313 output range: 0 to 1; -#X text 72 57 input range: 0 to 1; +#N canvas 189 157 641 435 10; +#X text 24 332 output range: 0 to 1; +#X text 28 41 input range: 0 to 1; #X text 11 5 [hid_polar]; -#X obj 232 312 outlet; -#X obj 224 56 inlet; -#X text 264 57 input range: 0 to 1; +#X text 220 39 input range: 0 to 1; #X text 29 29 x-axis value; #X text 221 26 y-axis value; #X obj 252 140 - 1; @@ -14,18 +10,26 @@ #X obj 29 140 - 1; #X obj 29 120 * 2; #X text 61 125 convert range to -1 to 1; -#X text 280 312 output range: 0 to 1; +#X text 227 330 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 text 23 331 radius; -#X text 230 332 angle; #X obj 88 218 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; +#X obj 435 54 symbol_argument \$1; +#X obj 435 80 select reverse; +#X text 420 107 TODO: figure this out; +#X obj 435 29 loadbang; +#X obj 30 58 inlet x; +#X obj 224 56 inlet y; +#X obj 25 313 outlet radius; +#X obj 232 312 outlet angle; +#X connect 6 0 14 1; +#X connect 7 0 6 0; +#X connect 8 0 14 0; +#X connect 9 0 8 0; +#X connect 14 0 21 0; +#X connect 14 1 22 0; +#X connect 15 0 16 0; +#X connect 18 0 15 0; +#X connect 19 0 9 0; +#X connect 20 0 7 0; diff --git a/polar.pd b/polar.pd index a982061..c438e14 100644 --- a/polar.pd +++ b/polar.pd @@ -1,12 +1,8 @@ -#N canvas 189 157 476 419 10; -#X obj 30 58 inlet; -#X obj 25 313 outlet; -#X text 73 313 output range: 0 to 1; -#X text 72 57 input range: 0 to 1; +#N canvas 189 157 641 435 10; +#X text 24 332 output range: 0 to 1; +#X text 28 41 input range: 0 to 1; #X text 11 5 [hid_polar]; -#X obj 232 312 outlet; -#X obj 224 56 inlet; -#X text 264 57 input range: 0 to 1; +#X text 220 39 input range: 0 to 1; #X text 29 29 x-axis value; #X text 221 26 y-axis value; #X obj 252 140 - 1; @@ -14,18 +10,26 @@ #X obj 29 140 - 1; #X obj 29 120 * 2; #X text 61 125 convert range to -1 to 1; -#X text 280 312 output range: 0 to 1; +#X text 227 330 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 text 23 331 radius; -#X text 230 332 angle; #X obj 88 218 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; +#X obj 435 54 symbol_argument \$1; +#X obj 435 80 select reverse; +#X text 420 107 TODO: figure this out; +#X obj 435 29 loadbang; +#X obj 30 58 inlet x; +#X obj 224 56 inlet y; +#X obj 25 313 outlet radius; +#X obj 232 312 outlet angle; +#X connect 6 0 14 1; +#X connect 7 0 6 0; +#X connect 8 0 14 0; +#X connect 9 0 8 0; +#X connect 14 0 21 0; +#X connect 14 1 22 0; +#X connect 15 0 16 0; +#X connect 18 0 15 0; +#X connect 19 0 9 0; +#X connect 20 0 7 0; -- cgit v1.2.1