max v2; #N vpatcher 2 30 1144 763; #P origin -25 -7; #P window setfont "Sans Serif" 9.; #P comment 385 260 156 9109513 set transition time for middle to left effect. Enter 0 again if you want change channel directly; #P comment 424 328 96 9109513 combine numbers as one list \, and set initial transition time to 10s; #P comment 111 197 116 9109513 initial automatic repetition transition time; #P comment 134 160 138 9109513 set tranistion time for automatic repetition; #P number 442 125 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P number 96 161 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 57 188 49 9109513 metro 500; #P toggle 57 94 15 0; #P comment 843 387 100 9109513 linear interporation; #P comment 884 337 100 9109513 combine numbers as one list \, and set initial transition time to 10s; #P comment 834 270 103 9109513 set transition time for fade in or out; #P newex 763 440 28 9109513 *~ -1; #P toggle 805 123 15 0; #P newex 805 336 64 9109513 pack 0. 10000; #P flonum 859 306 45 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 805 386 30 9109513 line~; #P comment 528 515 18 9109513 **; #P comment 393 372 100 9109513 linear interporation; #P comment 593 275 211 9109513 set transition time for middle to right effect. Enter 0 again if you want change channel directly; #P number 197 413 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 197 449 54 9109513 pack 0. 100; #P newex 173 478 34 9109513 line~ 1; #P newex 358 190 58 9109513 delay 10000; #P flonum 412 304 45 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 538 247 15 0; #P toggle 358 246 15 0; #P newex 358 409 28 9109513 *~ -1; #P newex 358 332 64 9109513 pack 0. 10000; #P newex 358 369 30 9109513 line~; #P newex 538 333 64 9109513 pack 0. 10000; #P toggle 57 256 15 0; #P newex 156 508 27 9109513 *~; #P message 157 318 28 9109513 open; #N sfplay~ 1 120960 0 ; #P newobj 157 372 39 9109513 sfplay~; #P newex 494 515 27 9109513 +~ 1; #P newex 172 609 27 9109513 *~; #P newex 494 556 29 9109513 sqrt~; #P newex 138 610 27 9109513 *~; #P toggle 358 75 15 0; #P newex 358 156 59 9109513 metro 10000; #P flonum 592 306 45 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 538 366 30 9109513 line~; #P newex 359 514 27 9109513 !-~ 1; #P newex 318 551 29 9109513 sqrt~; #P user ezdac~ 138 666 182 699 0; #P comment 199 320 100 9109513 select a sound file; #P comment 78 258 70 9109513 on/off to play file; #P comment 199 366 104 9109513 plays the sound file from selected file; #P comment 236 410 100 9109513 amplitude and volume adjustment; #P comment 256 450 100 9109513 smooth transition over 100ms; #P comment 211 482 100 9109513 default amplitude; #P comment 187 510 100 9109513 scale amplitude; #P comment 205 615 100 9109513 scale left channel for output for intensity; #P comment 27 612 100 9109513 scale right channel for output intensity; #P comment 388 65 169 9109513 on/off for automatic panning effect \, the toggle buttons for controling left and right channel need to be both on or off; #P comment 426 159 161 9109513 automatic initial transition time; #P comment 422 188 106 9109513 delay time for right and left channel \, this makes both channel will not be on or off at the same time; #P comment 367 553 100 9109513 square root to make smooth panning effect; #P comment 557 242 100 9109513 on/off middle to right pan *; #P comment 277 249 87 9109513 on/off middle to left pan *; #P comment 575 194 100 9109513 * if both toggles are on or off \, the sound will be heard in the middle; #P comment 607 332 150 9109513 combine numbers as one list \, and set initial transition time to 10s; #P comment 587 368 100 9109513 linear interporation; #P comment 388 515 18 9109513 **; #P comment 553 516 153 9109513 ** set intial amplitude of both channdel's intensity to 1 \, so the sound is coming from middle. set inverse relation for right and left channel \, so when right channel's amplitude is increased \, left channel will be decreased \, vice versa.; #P comment 395 406 100 9109513 inverse right and left channel's panning intensity; #P comment 0 13 258 9109513 Panning Effect Control Reference : Professor Christopher Dobrian's Constant Power Panning; #P comment 823 123 191 9109513 on/off for fade in and fade out effect. Users will hear the sound walk away or walk in. Users can also fade in or out the sound when sound is on either left or right channel only. To do this \, users need to turn on the buttons on left for selecting a channel to make the sound on one channel first \, then turn off that button \, and click this button for fade in and fade out effect; #P comment 654 420 102 9109513 Inverse left channel \, so both channels have the same function; #P comment 481 124 138 9109513 set tranistion time for automatic panning effect; #P comment 86 91 100 9109513 on/off for generating repetition of playing a sound; #P comment 190 672 100 9109513 turn on/off for audio; #P connect 64 0 65 0; #P connect 65 0 41 0; #P connect 66 0 65 1; #P fasten 40 0 34 0 161 569 143 569; #P fasten 34 0 27 0 143 646 143 646; #P fasten 28 0 34 1 323 579 160 579; #P connect 38 0 40 0; #P connect 39 0 38 0; #P fasten 41 0 38 0 62 371 162 371; #P fasten 40 0 36 0 161 568 177 568; #P fasten 36 0 27 1 177 645 177 645; #P connect 50 0 40 1; #P fasten 35 0 36 1 499 592 194 592; #P connect 52 0 51 0; #P connect 51 0 50 1; #P fasten 29 0 28 0 364 543 323 543; #P connect 33 0 32 0; #P fasten 32 0 49 0 363 182 363 182; #P connect 49 0 46 0; #P connect 46 0 44 0; #P connect 44 0 43 0; #P connect 43 0 45 0; #P fasten 56 0 29 0 810 493 364 493; #P fasten 30 0 29 0 543 455 364 455; #P connect 45 0 29 0; #P fasten 67 0 49 1 447 178 411 178; #P fasten 67 0 32 1 447 152 412 152; #P connect 48 0 44 1; #P fasten 45 0 37 0 363 475 499 475; #P fasten 30 0 37 0 543 460 499 460; #P fasten 60 0 37 0 768 481 499 481; #P fasten 37 0 35 0 499 548 499 548; #P fasten 32 0 47 0 363 182 543 182; #P connect 47 0 42 0; #P connect 42 0 30 0; #P connect 31 0 42 1; #P fasten 56 0 60 0 810 422 768 422; #P connect 59 0 58 0; #P connect 58 0 56 0; #P connect 57 0 58 1; #P pop;