max v2;
#N vpatcher 37 45 1025 760;
#P origin 107 186;
#P window setfont 
"Sans Serif" 9.;
#P comment 685 157 23 196617 (7);
#P comment 397 124 23 196617 (5);
#P comment 537 124 23 196617 (6);
#P comment 101 352 23 196617 (4);
#P comment 671 573 23 196617 (3);
#P comment 636 190 23 196617 (2);
#P comment 264 86 23 196617 (1);
#P button 638 207 18 0;
#P comment 825 57 99 196617 CREATED BY: ROD JARD PAHOLIO 50849727 FEBRUARY 14 \, 2005;
#P comment 58 543 363 196617 DIRECTIONS: 1) First of all \, carefully in 
put file name with extensions. Make sure the folder where file exists is 
known to the program or in same folder as program 2) Preset VOLUME to 
100 as to not hurt the ears 3) Press SOUND ON button 4) DELETE any files 
if you have to 5) Press to close gate \, make sure toggle is ON 6) 
Press to initiate Program Sequence \, make sure toggle is ON 7) Choose 
Channel Preference 8) Panning with the slider. Initial state 0 is Left \, 
0.5 is Mid \, 1 is R-Channel;
#P window setfont "Britannic Bold" 24.;
#P comment 292 38 529 132710424 REPEATED MULTIPLE FILE-OPEN IMPLEMENTATION AND SPATIALIZATION PANNING BY USER;
#P window setfont "Sans Serif" 9.; 
#Pcomment 807 289 193 196617 *For panning \, L=Left \, M=Mid \, R=Right 
channel respectively. When one of these is pressed \, the slider automatically goes to those positions. Auto Buttons. But when user presses any 
button \, for instance \, there is a spatialization delay and then it moves to the specified channel;
#P comment 671 327 35 196617 VARY SOUND HERE ALSO;
#P comment 887 245 90 196617 PAN ON YOUR OWN;
#P button 725 209 14 0;
#P button 790 207 15 0;
#P button 855 211 15 0;
#P message 855 188 14 196617 R;
#P message 790 188 16 196617 M;
#P message 725 189 14 196617 L;
#P message 855 233 26 196617 100;
#P message 790 229 20 196617 50;
#P message 725 230 14 196617 0;
#P flonum 668 381 38 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 881 263 39 196617 0-100;
#P comment 746 158 100 196617 L-R Channel Panning;
#P newex 725 308 39 196617 / 100.;
#P number 725 287 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user hslider 725 258 18 128 101 1 0 0;
#P comment 767 422 199 196617 *Use of sqrt gives the function a sense of real time when it hits the 
middle area of the speakers between L and R channels.;
#P comment 823 379 100 196617 *pack keeps things in a list while the line puts it out;
#P comment 720 498 202 196617 *This part is where the channels slowly switch from Left to Right channels. This is due to the "!-~1" function. This 
function works in that starting from constant high of 1 \, L-channel is subtracted from it then added to R-channel \, giving it a sense of 
spatial movement from one side to the other.;
#P message 768 338 33 196617 5000;
#P newex 685 439 36 196617 sqrt~;
#P newex 725 422 34 196617 sqrt~;
#P flonum 725 337 38 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 685 417 34 196617 !-~ 1;
#P newex 638 418 27 196617 *~;
#P newex 706 471 30 196617 *~;
#P newex 648 470 30 196617 *~;
#P user ezdac~ 659 533 703 566 0;
#P newex 725 385 49 196617 line~ 0.5;
#P newex 725 358 53 196617 pack 0. 0;
#P comment 416 955 140 196617 *PRESS BUTTON FOR SOUND;
#P message 283 176 110 196617 Trigger calls counter: goes from 0 to 1. If 0 a file is opened \, if 1 then another file open. This keeps going until OFF button pressed.;
#P comment 556 294 76 196617 Volume Control;
#P comment 559 241 76 196617 Preset @ 100;
#P message 48 83 190 196617 (1) Must put file name explicitly: append (filename+ext) \, append (filename+ext) Can be done with multiple files as long as there is a mmag between each file!;
#P button 441 151 15 0;
#P comment 501 362 112 196617 *The trigger is an integral aspect of the sound file loop \, after the file ends \, the trigger calls the bang which sends it back to the top here 
the sequence is initiated again \, but for a different sound file.;
#P comment 199 439 123 196617 After one sound file ends \, the next sound file in line will automatically play. This will continuously loop until the off toggle is pressed!;
#P button 464 151 15 0;
#P comment 320 145 118 196617 X = OPEN or Break = OFF Blank = CLOSED = ON;
#P comment 486 145 144 196617 Initiate Sequence USER MIGHT HAVE TO PRESS TWICE UNTIL TOGGLE IS ON (1);
#P comment 545 497 83 196617 *This trigger calls bang bang bang.;
#P comment 58 296 52 196617 Clear All;
#P button 117 316 15 0;
#P comment 1 318 114 196617 delete file one at a time;
#P button 116 294 15 0;
#P message 638 239 26 196617 100;
#P message 504 572 14 196617 1;
#P newex 504 542 54 196617 delay 200;
#P newex 474 499 40 196617 t b b b;
#P message 489 523 14 196617 0;
#P toggle 441 223 15 0;
#P user gswitch 441 394 41 32 0 0;
#P toggle 456 371 15 0;
#P message 183 321 32 196617 clear;
#P number 208 235 17 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 208 190 15 0;
#P user gain~ 638 268 24 100 158 0 1.071519 7.94321 10.;
#P button 474 478 15 0;
#N sfplay~  1 120960 0 ;
#P newobj 441 454 43 196617 sfplay~;
#P number 217 257 17 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter 0 0 1;
#X flags 0 0;
#P newobj 208 210 70 196617 counter 0 0 1;
#P newex 303 400 65 196617 prepend open;
#P user ubumenu 291 285 60 196617 0 1 1 0;
#X add left;
#X add center;
#X add right;
#X prefix_set 0 0  0;
#P message 291 305 44 196617 align \$1;
#P user ubumenu 258 378 101 196617 0 1 1 1;
#X add Gunshotrichochets.aif;
#X add throwknife2.wav;
#X prefix_set 0 0  0;
#P message 166 343 50 196617 delete 0;
#P message 258 103 252 196617 append Gunshotrichochets.aif \, append throwknife2.wav;
#P comment 353 286 90 196617 set text alignment;
#P comment 377 332 58 196617 gate - 0 or 1 to switch;
#P comment 330 449 89 196617 sfplay bangs when sound file ends \, goes into trigger - loop the file.;
#P comment 148 398 100 196617 places open before soundfile name;
#P user panel 33 78 223 61;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 192 162 89 118;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 253 366 125 60;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 423 361 69 78;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 716 177 168 80;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 687 258 191 73;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 720 333 83 72;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 632 415 131 78;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 435 450 127 140;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 49 535 380 140;
#X brgb 191 191 191;#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P fasten 38 0 15 0 122 345 171 345;
#P fasten 36 0 27 0 121 319 188 319;
#P fasten 32 0 25 0 479 521 131 521 131 167 213 167;
#P connect 25 0 20 0;
#P connect 20 0 26 0;
#P fasten 15 0 16 0 171 361 263 361; 
#P fasten 26 0 16 0 213 318 263 318;
#P fasten 17 0 16 0 296 323 263 323; 
#P fasten 14 0 16 0 263 255 263 255;
#P fasten 21 0 16 0 222 286 263 286;
#P fasten 27 0 16 0 188 339 263 339;
#P connect 18 0 17 0;
#P connect 16 1 19 0;
#P connect 46 0 30 0;
#P fasten 30 0 29 0 446 399 446 399;
#P connect 29 0 22 0;
#P fasten 19 0 22 0 308 432 446 432;
#P fasten 34 0 28 0 509 594 629 594 629 339 461 339;
#P fasten 43 0 28 0 469 219 461 219;
#P fasten 31 0 28 0 494 566 620 566 620 349 461 349;
#P fasten 28 0 29 1 461 398 461 398;
#P connect 22 1 23 0;
#P connect 23 0 32 0;
#P connect 32 1 31 0;
#P connect 32 2 33 0;
#P connect 33 0 34 0;
#P connect 87 0 35 0;
#P fasten 22 0 24 0 446 601 643 601;
#P fasten 35 0 24 0 643 261 643 261;
#P connect 24 0 57 0;
#P fasten 57 0 55 0 643 445 653 445;
#P fasten 71 0 57 1 673 404 660 404;
#P fasten 55 0 54 0 653 517 664 517;
#P fasten 61 0 55 1 690 465 673 465;
#P fasten 53 0 58 0 730 410 690 410;
#P connect 58 0 61 0;
#P fasten 56 0 54 1 711 518 698 518;
#P fasten 57 0 56 0 643 459 711 459;
#P connect 75 0 80 0;
#P connect 80 0 72 0;
#P fasten 74 0 66 0 860 252 730 252;
#P connect 72 0 66 0;
#P fasten 73 0 66 0 795 251 730 251;
#P connect 66 0 67 0;
#P connect 67 0 68 0;
#P connect 68 0 59 0;
#P connect 59 0 52 0;
#P connect 52 0 53 0;
#P connect 53 0 60 0;
#P connect 60 0 56 1;
#P connect 62 0 52 1;
#P connect 76 0 79 0;
#P connect 79 0 73 0;
#P connect 77 0 78 0;
#P connect 78 0 74 0;
pop;

    Source: geocities.com/rjpaho