From fccb2308e4d0cce01f2f949256aa3d880fd945c9 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 20 May 2005 20:42:59 +0000 Subject: updated math to generate proper curves svn path=/trunk/externals/hcs/hid/; revision=3043 --- hid_exp.pd | 19 +++++++------------ hid_log.pd | 26 +++++++++----------------- 2 files changed, 16 insertions(+), 29 deletions(-) diff --git a/hid_exp.pd b/hid_exp.pd index b17ce93..b7ca7a4 100644 --- a/hid_exp.pd +++ b/hid_exp.pd @@ -1,16 +1,11 @@ -#N canvas 76 444 487 313 10; +#N canvas 225 325 499 325 10; #X obj 72 38 inlet; -#X obj 86 263 outlet; +#X obj 72 258 outlet; #X text 120 38 input range: 0 to 1; -#X text 142 263 output range: 0 to 1; +#X text 128 258 output range: 0 to 1; #X text 7 9 [hid_exp]; -#X obj 86 178 pow; -#X obj 72 140 t b f; -#X msg 72 159 2; -#X obj 86 220 - 1; +#X obj 73 142 dbtorms; +#X obj 73 120 * 100; #X connect 0 0 6 0; -#X connect 5 0 8 0; -#X connect 6 0 7 0; -#X connect 6 1 5 1; -#X connect 7 0 5 0; -#X connect 8 0 1 0; +#X connect 5 0 1 0; +#X connect 6 0 5 0; diff --git a/hid_log.pd b/hid_log.pd index a125c07..297f5f8 100644 --- a/hid_log.pd +++ b/hid_log.pd @@ -1,19 +1,11 @@ -#N canvas 252 423 381 307 10; -#X obj 84 32 inlet; -#X obj 84 249 outlet; -#X text 132 32 input range: 0 to 1; -#X text 140 249 output range: 0 to 1; +#N canvas 297 485 422 322 10; +#X obj 31 45 inlet; +#X obj 31 282 outlet; +#X text 79 45 input range: 0 to 1; +#X text 87 282 output range: 0 to 1; #X text 9 5 [hid_log]; -#X obj 84 134 * 1.71828; -#X obj 84 153 + 1; -#X obj 84 193 log; -#X text 92 172 the values are scaled from 1 to e; -#X text 150 134 (e - 1); -#X obj 84 65 min 1; -#X obj 84 86 max 0; -#X connect 0 0 10 0; +#X obj 30 145 rmstodb; +#X obj 30 175 / 100; +#X connect 0 0 5 0; #X connect 5 0 6 0; -#X connect 6 0 7 0; -#X connect 7 0 1 0; -#X connect 10 0 11 0; -#X connect 11 0 5 0; +#X connect 6 0 1 0; -- cgit v1.2.1