From 5ec5497b2c50834b5cb93b92434e8b42df8f1472 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 2 Aug 2007 00:16:11 +0000 Subject: removed [int] rounding since it gets in the way too often. Perhaps there should be something like [midinoterange] which quantizes to ints] svn path=/trunk/externals/mapping/; revision=8341 --- notescale.pd | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'notescale.pd') diff --git a/notescale.pd b/notescale.pd index 8c63369..ad28d63 100644 --- a/notescale.pd +++ b/notescale.pd @@ -1,29 +1,26 @@ -#N canvas 37 318 444 446 10; +#N canvas 37 318 448 450 10; #X obj 64 49 inlet; #X obj 64 389 outlet; -#X obj 64 325 int; #X obj 64 297 expr $f1 * ($f3 - $f2) + $f2; #X obj 357 231 f \$2; #X obj 159 230 f \$1; #X obj 159 257 expr if ($f1 == $f2 \, 0 \, $f1) \; if ($f1 == $f2 \, 127 \, $f2); -#X text 10 7 [notescale]; #X obj 229 152 loadbang; #X obj 229 179 t b b; #X text 114 49 input range: 0 to 1; #X obj 64 96 min 1; #X obj 64 116 max 0; #X text 123 389 output range: MIDI note #s; -#X connect 0 0 11 0; +#X connect 0 0 9 0; #X connect 2 0 1 0; -#X connect 3 0 2 0; -#X connect 4 0 6 1; -#X connect 5 0 6 0; -#X connect 6 0 3 1; -#X connect 6 1 3 2; -#X connect 8 0 9 0; -#X connect 9 0 5 0; -#X connect 9 1 4 0; -#X connect 11 0 12 0; -#X connect 12 0 3 0; -#X connect 12 0 9 0; +#X connect 3 0 5 1; +#X connect 4 0 5 0; +#X connect 5 0 2 1; +#X connect 5 1 2 2; +#X connect 6 0 7 0; +#X connect 7 0 4 0; +#X connect 7 1 3 0; +#X connect 9 0 10 0; +#X connect 10 0 2 0; +#X connect 10 0 7 0; -- cgit v1.2.1