From 43c45ade1a89f39f5e0054d58fd47deb9d63669c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 17 Jul 2007 04:33:23 +0000 Subject: All three of these objects split a single range into multiple ranges. I added code to all three that automatically sets each output subranges to the proper values even if the input value skipped over a given output subrange. For example, if the input value skipped from the first subrange to the last subrange, then the subranges in between should all be set to 1 as if the input stream passed smoothly thru all of the subranges. svn path=/trunk/externals/mapping/; revision=8100 --- one0x2d0x3etwo.pd | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'one0x2d0x3etwo.pd') diff --git a/one0x2d0x3etwo.pd b/one0x2d0x3etwo.pd index 24cc1da..7a9ffbe 100644 --- a/one0x2d0x3etwo.pd +++ b/one0x2d0x3etwo.pd @@ -1,26 +1,30 @@ -#N canvas 616 92 482 348 10; -#X obj 131 38 inlet; -#X obj 131 253 outlet; -#X obj 233 252 outlet; -#X obj 233 194 /; -#X obj 245 28 inlet; -#X obj 261 51 loadbang; -#X obj 246 77 purepd/float_argument \$1 0.5; -#X obj 246 98 clip 0 1; -#X msg 247 137 1 \$1; -#X obj 249 165 -; -#X obj 160 124 max; -#X obj 160 154 -; +#N canvas 844 571 510 376 10; +#X obj 31 38 inlet; +#X obj 31 313 outlet; +#X obj 283 312 outlet; +#X obj 283 254 /; +#X obj 295 28 inlet; +#X obj 311 51 loadbang; +#X obj 296 77 purepd/float_argument \$1 0.5; +#X obj 296 98 clip 0 1; +#X obj 237 212 -; +#X obj 298 204 mapping/reverse; +#X obj 210 124 moses; +#X obj 152 212 purepd/once; +#X msg 152 251 0; #X connect 0 0 1 0; #X connect 0 0 10 0; #X connect 3 0 2 0; #X connect 4 0 6 0; #X connect 5 0 6 0; #X connect 6 0 7 0; -#X connect 7 0 8 0; +#X connect 7 0 8 1; +#X connect 7 0 9 0; #X connect 7 0 10 1; -#X connect 7 0 11 1; -#X connect 8 0 9 0; +#X connect 8 0 3 0; #X connect 9 0 3 1; #X connect 10 0 11 0; -#X connect 11 0 3 0; +#X connect 10 1 8 0; +#X connect 10 1 11 1; +#X connect 11 0 12 0; +#X connect 12 0 2 0; -- cgit v1.2.1