max v2; #N vpatcher 43 49 1348 753; #P origin 8 -25; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P message 1123 493 69 196617 rampdown \$1; #P number 1123 474 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 1061 493 55 196617 rampup \$1; #P number 1061 474 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P user scope~ 1085 543 1228 670 256 3 128 0. 127. 0 0. 0 0. 102 255 51 135 135 135 0; #P user number~ 938 565 1041 580 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0; #P message 999 493 50 196617 ramp \$1; #P number 999 474 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 938 517 140 196617 rampsmooth~ 44100 44100; #B color 5; #P comment 182 194 143 196617 args: ; #P user scope~ 959 242 1089 372 256 3 128 0. 127. 0 0. 0 0. 102 255 51 135 135 135 0; #P hidden message 969 212 64 196617 range 0 127; #P user scope~ 1093 242 1223 372 256 3 128 0. 127. 0 0. 0 0. 102 255 51 135 135 135 0; #P newex 834 246 27 196617 sig~; #P flonum 865 247 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 834 270 65 196617 svf~ 1.5 0.5; #B color 5; #P window setfont "Sans Serif" 14.; #P comment 746 32 100 196622 smoothing; #P comment 237 215 100 196622 scaling; #P window setfont "Sans Serif" 9.; #P comment 861 39 100 196617 noisey signal; #P user uslider 861 56 60 111 128 1 0 0; #P newex 784 110 27 196617 + 0; #P newex 800 85 55 196617 random 20; #P newex 783 58 27 196617 t i b; #P newex 629 759 38 196617 +~ 64.; #P newex 669 778 52 196617 s sensor1; #P newex 83 33 52 196617 r sensor1; #P flonum 1116 174 69 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 990 175 54 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 1116 146 44 196617 / 1000.; #P comment 1106 38 120 196617 fake floating point line; #P newex 1116 78 27 196617 t i b; #P newex 1116 55 42 196617 * 1000; #P number 1132 102 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 1116 122 40 196617 line; #P number 313 482 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P user uslider 169 57 59 119 128 1 0 0; #P newex 170 38 35 196617 !- 127; #P button 579 137 31 0; #P button 544 137 31 0; #P newex 543 97 40 196617 change; #P newex 543 73 28 196617 > 64; #P number 389 174 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 393 94 44 196617 select 0; #P button 393 122 15 0; #P newex 388 146 33 196617 timer; #P newex 393 71 40 196617 change; #P user uslider 1047 54 60 111 128 1 0 0; #P number 1007 84 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 990 54 27 196617 t i b; #P newex 990 109 40 196617 line; #P hidden message 181 611 14 196617 1; #P hidden newex 180 587 45 196617 loadbang; #P flonum 451 717 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 0 97 48 0; #P user ezdac~ 186 705 230 738 0; #P number 316 665 30 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #N vpreset 1; #X append 1 2 21 323 450 flonum float 0.700787 \; 22 279 450 hslider int 89 \; 23 362 450 flonum float 0.244547 \; 24 406 450 hslider int 31 \; 25 311 625 flonum float 100. \; 31 54 83 uslider int; #X append 1 2 89 \; 32 280 105 uslider int 85 \; 35 354 221 flonum float 0.109239 \; 36 296 221 flonum float 89. \; 38 276 221 hslider int 89 \; 39 316 339 flonum float 1.42 \; 40 406 221; #X append 1 2 hslider int 13 \; 44 556 83 hslider int 67 \; 46 520 127 flonum float 0.532379 \; 54 833 231 flonum float 0. \; 55 748 338 flonum float -1.023872 \; 56 665 531 flonum float 0. \; 57 518 311; #X append 1 2 uslider int 0 \; 59 518 439 uslider int 63 \; 61 518 377 uslider int 64 \; 65 665 442 flonum float 0.5 \; 66 665 379 flonum float 0.503937 \; 68 774 302 flonum float -1.007895 \; 70 774 469; #X append 1 2 flonum float 1.002618 \; 71 503 492 multiSlider list 0. 0. \; 73 665 316 number int 0 \; 11 779 629 number~ list 0. 0. \; 75 97 0 toggle int 0 \; 76 717 451 flonum float 0.5; #X append 1 2 \;; #P preset 229 613 47 27; #P user multiSlider 492 503 152 142 0. 1. 2 3449 47 0 0 2 0 0 0; #M frgb 0 0 0; #M brgb 255 255 255; #M rgb2 127 127 127; #M rgb3 0 0 0; #M rgb4 37 52 91; #M rgb5 74 105 182; #M rgb6 112 158 18; #M rgb7 149 211 110; #M rgb8 187 9 201; #M rgb9 224 62 37; #M rgb10 7 114 128; #P flonum 469 774 61 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 567 717 15 0; #P flonum 302 774 68 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 231 810 79 196617 scale 0. 127.; #P flonum 379 665 31 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 442 665 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden newex 442 683 95 196617 expr ($f1+1)/128.; #P hidden newex 377 682 38 196617 / 127.; #N vpatcher 185 267 582 606; #P outlet 91 293 15 0; #P inlet 93 61 15 0; #P window setfont "Sans Serif" 9.; #P newex 91 212 111 196617 expr pow($f1\\\, 1./3.); #P flonum 148 277 112 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 93 92 169 196617 if $f1 < 0 then bang else out2 bang; #P button 93 115 15 0; #P button 252 115 15 0; #P message 93 134 25 196617 -1.; #P message 252 135 17 196617 1.; #P newex 91 172 27 196617 * 1.; #P newex 91 249 27 196617 * 1.; #P fasten 9 0 1 0 81 76 81 157; #P connect 1 0 8 0; #P connect 8 0 0 0; #P connect 0 0 10 0; #P connect 9 0 6 0; #P connect 6 0 5 0; #P connect 5 0 3 0; #P fasten 2 0 1 1 257 160 113 160; #P fasten 3 0 1 1 98 160 113 160; #P fasten 2 0 0 1 257 236 113 236; #P fasten 3 0 0 1 224 214 224 236 113 236; #P fasten 0 0 7 0 96 276; #P connect 6 1 4 0; #P connect 4 0 2 0; #P pop; #P newobj 404 774 55 196617 p cuberoot; #P user uslider 377 518 41 126 128 1 0 0; #P newex 404 749 95 196617 expr ((1-$f1)/$f2); #P user uslider 439 518 41 126 128 1 0 0; #P newex 244 748 91 196617 expr -1.*$f1/$f2; #P user uslider 311 518 41 126 128 1 0 0; #P flonum 531 665 59 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 338 748 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 231 833 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 338 849 135 196617 expr $f2*pow($f1\\\,3)+$f3; #N vpatcher 100 311 497 651; #P outlet 84 286 15 0; #P inlet 86 54 15 0; #P window setfont "Sans Serif" 9.; #P newex 84 205 111 196617 expr pow($f1\\\, 1./3.); #P flonum 141 270 112 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 86 85 169 196617 if $f1 < 0 then bang else out2 bang; #P button 86 108 15 0; #P button 245 108 15 0; #P message 86 127 25 196617 -1.; #P message 245 128 17 196617 1.; #P newex 84 165 27 196617 * 1.; #P newex 84 242 27 196617 * 1.; #P fasten 9 0 1 0 74 69 74 150; #P connect 1 0 8 0; #P connect 8 0 0 0; #P connect 0 0 10 0; #P connect 9 0 6 0; #P connect 6 0 5 0; #P connect 5 0 3 0; #P fasten 3 0 1 1 91 153 106 153; #P fasten 2 0 1 1 250 153 106 153; #P fasten 3 0 0 1 217 207 217 229 106 229; #P fasten 2 0 0 1 250 229 106 229; #P fasten 0 0 7 0 89 269; #P connect 6 1 4 0; #P connect 4 0 2 0; #P pop; #P newobj 244 773 55 196617 p cuberoot; #P comment 307 500 55 196617 x=input; #P comment 440 499 40 196617 a=depth; #P comment 371 499 55 196617 b=center; #P comment 213 642 89 196617 default a=.5 b=.5; #P window linecount 2; #P comment 7 71 33 196617 Run Demo; #P flonum 127 520 66 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 1; #P newex 83 520 39 196617 * 127.; #P user hslider 83 556 18 128 128 1 0 0; #P newex 83 489 185 196617 expr pow(($f1-63.5)/63.5\\\,3.)*.5+.5; #P window linecount 2; #P comment 93 461 100 196617 cubic scaling function; #P window linecount 1; #P newex 221 385 39 196617 * 127.; #P user hslider 221 406 18 128 128 1 0 0; #P flonum 339 316 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P user hslider 221 276 14 129 128 1 0 0; #P newex 221 318 112 196617 scale 0 127 0. 1. 1.06; #P flonum 221 296 43 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 221 354 71 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 266 298 141 196617 float/integer number as input; #P comment 231 338 205 196617 outputs of the input number; #P user uslider 105 280 57 130 128 1 0 0; #P user uslider 83 54 59 119 128 1 0 0; #N vtable 128 238 127 448 294 0 128; #P newobj 105 246 30 196617 table; #P hidden newex 609 264 45 196617 loadbang; #P hidden message 625 290 29 196617 100.; #P newex 450 385 39 196617 * 127.; #P newex 450 300 38 196617 / 127.; #P flonum 625 311 56 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P user hslider 450 406 18 128 128 1 0 0; #P flonum 450 362 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P user hslider 450 279 18 128 128 1 0 0; #P flonum 450 323 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 450 341 185 196617 expr (pow($f2\\\, ($f1)) - 1.)/( $f2-1.); #P comment 638 330 100 196617 coefficient; #P window linecount 2; #P comment 461 250 133 196617 do it yourself exponential scaling.... (from PerColate); #P window linecount 6; #P comment 614 237 100 196617 can be greater than or less than 1 \, for different kinds of scaling (more flexible than "scale"); #P window linecount 1; #P comment 86 231 100 196617 draw a transform; #P comment 437 73 100 196617 filter out repititions; #P comment 79 22 100 196617 incoming data; #P newex 629 712 55 196617 cycle~ 0.1; #P newex 629 737 39 196617 *~ 64.; #P user number~ 629 779 668 794 9 3 3 2 0. 0. 0 0. 50 0. 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 2; #P comment 235 105 52 196617 invert data; #P window linecount 1; #P comment 989 37 100 196617 smooth with line; #P window linecount 2; #P comment 440 93 100 196617 bang once when you reach 0; #P window linecount 1; #P comment 427 146 100 196617 time between 0s; #P window linecount 3; #P comment 589 74 100 196617 report when value rises above or falls below a threshold.; #P window linecount 1; #P comment 392 471 100 196617 cube root function; #P comment 108 613 100 196617 crb 2/04; #P comment 229 255 145 196617 scale: linear or exponential; #P window setfont "Sans Serif" 14.; #P comment 407 44 100 196622 thresholds; #P window setfont "Sans Serif" 9.; #P comment 851 230 100 196617 cut off frequency; #P window linecount 5; #P comment 839 298 100 196617 state variable filter svf~ used as a low pass filter after converting data to audio stream; #P connect 103 0 31 0; #P hidden connect 31 0 43 0; #P connect 43 0 45 0; #P connect 45 0 44 0; #P hidden fasten 31 0 30 0 88 203 110 203; #P connect 30 0 32 0; #P fasten 43 0 46 0 88 510 132 510; #P connect 92 0 93 0; #P hidden connect 31 0 92 0; #P hidden fasten 77 0 78 0 186 610; #P hidden connect 75 0 74 0; #P hidden fasten 31 0 38 0 88 204 226 204; #P connect 38 0 36 0; #P connect 36 0 37 0; #P connect 37 0 35 0; #P connect 35 0 41 0; #P connect 41 0 40 0; #P hidden connect 78 0 72 0; #P hidden fasten 57 0 67 0 316 681 236 681; #P hidden connect 67 0 54 0; #P hidden fasten 63 0 58 0 382 702 249 702; #P fasten 69 0 58 0 572 736 249 736; #P connect 58 0 52 0; #P fasten 52 0 67 3 249 802 275 802; #P fasten 62 0 67 4 409 802 288 802; #P hidden connect 52 0 68 0; #P hidden connect 31 0 57 0; #P hidden fasten 11 1 57 0 663 522 316 522; #P hidden fasten 94 0 57 0 318 499 316 499; #P hidden connect 31 0 94 0; #P hidden fasten 11 1 94 0 663 469 318 469; #P hidden connect 57 0 73 0; #P connect 39 0 37 5; #P fasten 64 0 58 1 447 707 330 707; #P hidden connect 58 0 55 0; #P fasten 67 0 53 0 236 829 343 829; #P hidden fasten 61 0 63 0 382 669 382 669; #P hidden connect 63 0 66 0; #P connect 85 0 84 0; #P connect 84 0 87 0; #P hidden connect 31 0 83 0; #P connect 83 0 86 0; #P connect 86 0 85 0; #P fasten 64 0 53 1 447 805 405 805; #P fasten 63 0 60 0 382 740 409 740; #P fasten 69 0 60 0 572 740 409 740; #P connect 60 0 62 0; #P connect 85 0 84 1; #P hidden connect 64 0 65 0; #P hidden fasten 59 0 64 0 444 680 447 680; #P hidden fasten 31 0 22 0 88 203 455 203; #P connect 22 0 26 0; #P connect 26 0 21 0; #P connect 21 0 20 0; #P connect 20 0 23 0; #P connect 23 0 27 0; #P connect 27 0 24 0; #P connect 64 0 76 0; #P hidden fasten 63 0 53 2 382 799 467 799; #P hidden connect 62 0 70 0; #P fasten 64 0 60 1 447 743 494 743; #P hidden fasten 53 0 71 0 343 840 497 840; #P hidden fasten 53 0 56 0 343 878 536 878; #P hidden connect 31 0 88 0; #P connect 88 0 89 0; #P connect 89 1 90 0; #P fasten 64 0 69 0 447 713 572 713; #P connect 89 2 91 0; #P hidden connect 29 0 28 0; #P hidden connect 28 0 25 0; #P connect 25 0 20 1; #P connect 13 0 12 0; #P connect 12 0 105 0; #P connect 105 0 11 0; #P connect 11 1 104 0; #P hidden connect 31 0 106 0; #P connect 106 0 108 0; #P connect 106 1 107 0; #P connect 107 0 108 1; #P hidden connect 109 0 115 0; #P connect 115 0 113 0; #P hidden connect 108 0 109 0; #P connect 114 0 113 1; #P connect 115 0 120 0; #P fasten 122 0 120 0 1004 512 943 512; #P fasten 126 0 120 0 1066 512 943 512; #P fasten 128 0 120 0 1128 512 943 512; #P connect 120 0 123 0; #P hidden connect 117 0 118 0; #P hidden connect 115 0 118 0; #P hidden connect 77 0 117 0; #P hidden connect 108 0 80 0; #P connect 80 0 79 0; #P connect 79 0 101 0; #P connect 121 0 122 0; #P connect 81 0 79 1; #P hidden connect 28 0 81 0; #P connect 80 1 81 0; #P hidden connect 79 0 82 0; #P connect 125 0 126 0; #P hidden connect 117 0 124 0; #P fasten 120 0 124 0 943 537 1090 537; #P hidden connect 113 0 116 0; #P hidden connect 117 0 116 0; #P hidden connect 31 0 97 0; #P connect 97 0 98 0; #P connect 98 0 95 0; #P connect 95 0 100 0; #P connect 100 0 102 0; #P connect 127 0 128 0; #P connect 96 0 95 1; #P connect 98 1 96 0; #P hidden connect 28 0 96 0; #P pop;