max v2; #N vpatcher 12 48 1158 800; #P origin 0 -27; #P window setfont "Fixedwidth Serif" 18.; #P comment 595 459 141 1441810 ramp on time; #P message 307 158 53 1441810 open; #P message 662 190 19 1441810 0; #P user uslider 662 39 29 104 82 1 -81 0; #P newex 662 163 86 1441810 sel -81; #P number 738 190 51 18 -80 0 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 751 291 372 1441810 amplitude expressed as a decimal \; 1. = full amplitude; #P newex 738 267 262 1441810 expr pow(10.\\\,$f1*0.05); #P comment 750 229 361 1441810 amplitude expressed in decibels \; 0dB = full amplitude; #P number 638 479 53 18 0 0 1 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 584 504 64 1441810 f 20.; #P flonum 494 477 65 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 373 476 53 18 0 0 1 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 451 504 53 1441810 f 1.; #P message 319 529 53 1441810 0 \$1; #P newex 319 501 64 1441810 f 20.; #P newex 384 408 86 1441810 sel 0 1; #P comment 556 308 108 1441810 threshold; #P toggle 133 645 15 0; #P newex 252 628 31 1441810 *~; #P newex 203 628 31 1441810 *~; #P newex 384 568 64 1441810 line~; #P newex 203 661 59 1441810 dac~; #P toggle 384 388 15 0; #P newex 384 360 74 1441810 change; #P flonum 449 307 107 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 384 332 75 1441810 >= 0.1; #P newex 451 532 143 1441810 pack 0. 0.; #P number 504 236 53 18 0 0 1 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 384 264 130 1441810 peakamp~ 20; #P newex 307 95 97 1441810 loadbang; #P message 136 123 19 1441810 1; #P message 82 124 19 1441810 0; #P message 307 123 251 1441810 open GateTestSound.aif; #P toggle 203 104 15 0; #P message 203 124 86 1441810 loop \$1; #N sfplay~ 2 120960 0 ; #P newobj 203 189 108 1441810 sfplay~ 2; #P comment 84 662 119 1441810 DSP on/off; #P comment 69 104 108 1441810 stop/play; #P comment 419 216 240 1441810 polling interval (ms); #P comment 314 456 152 1441810 ramp off time; #P comment 500 457 53 1441810 gain; #P comment 387 605 372 1441810 Same as the basicgate \, but with ramp on and off times independent of the polling time \, and with threshold expressed in decibels.; #P connect 8 0 7 0; #P connect 41 0 6 0; #P connect 7 0 6 0; #P connect 9 0 6 0; #P connect 11 0 6 0; #P connect 10 0 6 0; #P connect 6 0 22 0; #P connect 22 0 20 0; #P connect 24 0 20 0; #P connect 21 0 22 1; #P connect 6 1 23 0; #P connect 23 0 20 1; #P connect 21 0 23 1; #P connect 12 0 9 0; #P connect 26 0 27 0; #P connect 27 0 28 0; #P connect 30 0 27 1; #P connect 6 0 13 0; #P connect 13 0 16 0; #P connect 16 0 18 0; #P connect 18 0 19 0; #P connect 19 0 26 0; #P connect 15 0 21 0; #P connect 28 0 21 0; #P fasten 35 0 17 0 743 299 454 299; #P fasten 40 0 17 0 667 299 454 299; #P connect 17 0 16 1; #P connect 26 1 29 0; #P connect 29 0 15 0; #P connect 31 0 29 1; #P connect 14 0 13 1; #P fasten 26 1 32 0 533 451 589 451; #P connect 32 0 15 1; #P connect 33 0 32 1; #P connect 39 0 38 0; #P connect 38 0 40 0; #P connect 38 1 37 0; #P connect 37 0 35 0; #P pop;