max v2; #N vpatcher 10 59 896 666; #P window setfont Times 18.; #P window linecount 3; #P comment 321 357 135 1310738 subract from 1 to get the opposite amplitude change; #P window linecount 1; #P comment 398 520 96 1310738 audio on/off; #P window linecount 2; #P comment 576 212 211 1310738 take 20 ms to go smoothly to the new amplitude; #P window linecount 1; #P comment 565 159 211 1310738 scale down to the range 0-1; #P comment 597 121 207 1310738 slider sends numbers 0-100; #P comment 350 53 186 1310738 Linear volume crossfade; #P window setfont "Fixedwidth Serif" 18.; #P newex 311 297 76 1441810 sig~ 1; #P newex 311 332 91 1441810 -~; #P user hslider 453 122 18 128 101 1 0 0; #P newex 489 362 144 1441810 *~; #P newex 489 329 120 1441810 cycle~ 500; #P newex 459 456 32 1441810 +~; #P newex 425 456 32 1441810 +~; #P message 544 219 32 1441810 20; #P newex 489 245 65 1441810 line~; #P flonum 489 184 61 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 489 157 76 1441810 * 0.01; #P user ezdac~ 425 487 469 520 0; #P newex 177 362 144 1441810 *~; #P newex 177 331 120 1441810 cycle~ 400; #P connect 0 0 1 0; #P connect 13 0 12 0; #P connect 12 0 1 1; #P fasten 5 0 12 1 494 282 397 282; #P connect 1 0 7 0; #P connect 7 0 2 0; #P connect 10 0 7 1; #P connect 1 0 8 0; #P connect 8 0 2 1; #P connect 10 0 8 1; #P fasten 11 0 3 0 458 148 494 148; #P connect 3 0 4 0; #P connect 4 0 5 0; #P connect 9 0 10 0; #P fasten 4 0 6 0 494 215 549 215; #P connect 6 0 5 1; #P fasten 5 0 10 1 494 282 628 282; #P pop;