max v2; #N vpatcher 0 0 1024 662; #P origin 506 -115; #P window setfont "Microsoft Sans Serif" 9.; #P comment 751 308 65 17170441 wave duration; #P window setfont "Microsoft Sans Serif" 18.; #P comment 71 764 108 17170450 White Noise; #B frgb 255 255 255; #N picture; #K replace 249; #K set 0 54001664 16 1048593 50269184 -131072 4718592 4718592 0 1048592 0 10551794 1456194 1229783040 0 1048592 1198688624 1756324458 65546 0 1048592 10092544 16744512 0 1048592 4 0 4718592 4718592 1048608 196616 0 0 0 0 1048592 0 1048592 4195025 3211264 -24641451 -24641451 -24640427 -2004353024 -24641451 -24641451 -24640427 -2004353024 -24641451 -24641451 -24640683 -2004352975 65160 5635720 5635720 72714376 65160 5635720 5635720 72714376 65160 5635720 5635720 55937160 3211264 -24641451 -24641451 -24640427 -2004353024 -24641451 -24641451 -24640427 -2004353024 -24641451 -24641451 -24640683 -2004352998 63317 65109 -16713899 16776789 -16713899 3407445 12544 16680960 16680968 1434976256 1435011072 16680960 -96248 1435041791 1435011072 16680960 872318983 1434989363 1435011072 822083838 -2013265666 -2012719736 21896 -2013265666 -2013200386 -2012719736 -43640 -2013265666 -2013252610 -2012785272 859002248 -2013253329 8947712 1426098312 1426098176 1435011072 8947967 1442809992 1442810111 1435011072 8947763 1429440648 1429440563 1435011072 838795267 1426085120 -27982848 1426085205 -33553153 1442797055 -27980545 1442796885; #K set 128 -16777165 1429427507 -27982285 1429427541 855650568 8913032 1434976392 16680961 8977920 126418824 1435041672 -96244 -7799040 8926088 1434989448 872318979 864563968 822608008 8934792 8913150 -1996554230 -2013265784 -7842424 -7798786 -1996488950 -2013265784 864572808 864564222 -1996541183 -2013253376 16680964 1435011072 1442744575 165888 16680964 1435011327 1442744575 -16611328 16680964 1435011123 1442744575 855738368 419430646 1426325589 1426063606 1426390869 1426063606 1426273109 1426075904 16680960 1442744320 1442744324 1435011072 16680960 1442744320 1442744324 1435011072 16680960 1442744320 1442744323 1435011072 822083838 -2013243906 -2013243906 -2012981880 -2013265666 -2013243906 -2013243906 -2012981880 -2013265666 -2013243906 -2013243906 -2013047416 -2013262091 22002 22002 22014 255 -2013233152 0 322 6 55312384 55574528 55836672 56098816 56360960 56623104 56885248 57147392 57409536 57671680 57933824 58195968 58458112 58720256 58982400 59244544 59506688 59768832 60030976 60293120 60555264 60817408 61079552 61341696 61603840 61865984 62128128 62390272 62652416 62914560 63176704 63438848 63700992 63963136 64225280 64487424 64749568 65011712 65273856; #P vpicture 250 736 267 754; #P window setfont "Microsoft Sans Serif" 9.; #P comment 267 737 165 17170441 scope~ displays the signal graphically; #P user panel 245 729 188 31; #X brgb 233 252 211; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P user scope~ 238 760 368 890 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0; #P window setfont "Sans Serif" 9.; #P comment 729 734 115 9109513 mod 10 of drunk to pick wind random wind effects; #P window setfont "Microsoft Sans Serif" 9.; #P newex 691 733 34 17170441 % 10; #P number 691 759 34 9 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont "Sans Serif" 9.; #P comment 841 850 142 9109513 bang when drunk greater than 7; #P comment 672 852 151 9109513 bang when drunk between 3 & 6; #P comment 520 854 129 9109513 bang when drunk less than 3; #P comment 751 1081 36 9109513 -- gain; #P comment 918 1079 36 9109513 -- gain; #P comment 594 979 36 9109513 ++ gain; #P comment 919 974 36 9109513 ++ gain; #P comment 751 977 36 9109513 ++ gain; #P comment 844 1079 36 9109513 - freq; #P comment 521 978 36 9109513 ++ freq; #P comment 676 978 36 9109513 ++ freq; #P comment 676 1082 36 9109513 -- freq; #P comment 522 1082 36 9109513 =- freq; #P comment 844 975 36 9109513 ++ freq; #P comment 44 1085 100 9109513 White noise object; #P comment 998 1082 100 9109513 Brownian noise object; #P comment 200 894 94 9109513 Allow the gain for the LPF to be adjusted; #P comment 1005 904 90 9109513 Lowpass filter mode; #P comment 1117 892 94 9109513 Allow the gain for the LPF to be adjusted; #P toggle 1101 900 15 0; #P message 1101 921 64 9109513 gainmode \$1; #P comment 87 909 90 9109513 Lowpass filter mode; #P toggle 183 905 15 0; #P message 183 926 64 9109513 gainmode \$1; #P window setfont "Microsoft Sans Serif" 12.; #P comment 824 783 81 17170444 Wind Effect 3; #P comment 657 785 81 17170444 Wind Effect 2; #P comment 503 786 81 17170444 Wind Effect 1; #P window setfont "Microsoft Sans Serif" 9.; #P comment 72 789 119 17170441 Creates wind effects; #B frgb 255 255 255; #P window setfont "Sans Serif" 9.; #P newex 826 827 50 9109513 sel 1; #P newex 659 830 50 9109513 sel 1; #P newex 504 831 50 9109513 sel 1; #P newex 692 806 29 9109513 &&; #P newex 725 805 29 9109513 <= 6; #P newex 659 806 29 9109513 >= 3; #P newex 826 804 29 9109513 >= 7; #P newex 504 808 29 9109513 < 3; #P flonum 901 1142 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 901 1119 40 9109513 line 0.; #P message 901 1098 62 9109513 5. \, 0.75 1000; #P button 901 1079 15 0; #P newex 901 1056 37 9109513 sel 5.; #P comment 901 1161 63 9109513 right column adjusts gain; #P flonum 901 1036 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 901 1013 40 9109513 line 0.; #P message 901 992 61 9109513 1.25 \, 5. 1000; #P newex 901 952 59 9109513 delay 1000; #P button 901 974 15 0; #P newex 901 930 37 9109513 sel 1.25; #P flonum 901 912 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 901 889 40 9109513 line 0.; #P message 901 869 58 9109513 0. \, 1.25 500; #P comment 734 1164 64 9109513 right column adjusts gain; #P comment 575 1060 58 9109513 right column adjusts gain; #P comment 826 1162 60 9109513 left column adjusts freq; #P comment 658 1164 57 9109513 left column adjusts freq; #P comment 504 1165 57 9109513 left column adjusts freq; #P button 826 850 15 0; #P button 826 975 15 0; #P flonum 826 1037 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 826 1056 49 9109513 sel 300; #P newex 826 1014 40 9109513 line; #P message 826 993 65 9109513 30 \, 300 1500; #P newex 826 953 65 9109513 delay 100; #P flonum 826 913 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 826 1119 40 9109513 line; #P button 826 1079 15 0; #P number 826 1142 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P message 826 1098 68 9109513 300 \, 30 1000; #P newex 826 931 43 9109513 sel 100; #P newex 826 890 40 9109513 line; #P message 826 870 65 9109513 0 \, 100 500; #P button 659 853 15 0; #P flonum 733 1144 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 733 1121 40 9109513 line 0.; #P message 733 1100 61 9109513 1.2 \, 0.2 1000; #P button 733 1081 15 0; #P newex 733 1058 37 9109513 sel 1.2; #P button 659 978 15 0; #P flonum 659 1040 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 659 1059 49 9109513 sel 800; #P newex 659 1017 40 9109513 line; #P message 659 996 65 9109513 200 \, 800 1500; #P newex 659 956 65 9109513 delay 1000; #P newex 733 955 59 9109513 delay 3000; #P flonum 733 1039 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 733 1016 40 9109513 line 0.; #P message 733 995 61 9109513 0.2 \, 1.2 1000; #P button 733 977 15 0; #P newex 733 933 37 9109513 sel 0.2; #P flonum 659 916 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 733 915 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 733 892 40 9109513 line 0.; #P message 733 872 58 9109513 0. \, 0.2 500; #P newex 659 1122 40 9109513 line; #P button 659 1082 15 0; #P number 659 1145 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P message 659 1101 68 9109513 800 \, 300 1000; #P newex 659 934 43 9109513 sel 100; #P newex 659 893 40 9109513 line; #P message 659 873 65 9109513 0 \, 100 500; #P button 504 978 15 0; #P flonum 504 1040 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 504 1059 49 9109513 sel 900; #P newex 504 1018 40 9109513 line; #P message 504 997 67 9109513 200 \, 900 1500; #P newex 504 956 54 9109513 delay 500; #P newex 576 957 59 9109513 delay 2500; #P button 504 854 15 0; #P flonum 576 1041 41 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 576 1018 40 9109513 line 0.; #P message 576 997 61 9109513 1. \, 0.2 1000; #P button 576 979 15 0; #P newex 576 935 34 9109513 sel 1; #P flonum 504 916 42 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 576 917 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 576 894 36 9109513 line 0.; #P message 576 874 58 9109513 0. \, 1. 500; #P newex 504 1122 40 9109513 line; #P button 504 1082 15 0; #P number 504 1145 39 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P message 504 1101 68 9109513 900 \, 200 1000; #P newex 504 934 43 9109513 sel 100; #P newex 504 894 42 9109513 line; #P message 504 874 64 9109513 0 \, 100 500; #P comment 412 910 35 9109513 Q or S; #P flonum 412 926 37 9 0. 3. 3 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 377 926 36 9 0. 7. 3 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 342 926 36 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 288 916 52 9109513 cutoff or center freq; #P comment 376 898 39 9109513 gain (linear); #P comment 213 382 100 9109513 set random number generator seed--a value of 0 uses an unpredictable time value to set the seed; #P window setfont "Microsoft Sans Serif" 9.; #P number 814 327 35 9 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont "Sans Serif" 12.; #P comment 1004 833 125 9109516 Brown noise through a LPF to make waves sound deep & full; #P window setfont "Microsoft Sans Serif" 9.; #P message 1311 900 32 17170441 8.; #P message 1263 901 32 17170441 44.; #P newex 1001 1096 42 17170441 lp.pfff~; #P window setfont "Sans Serif" 9.; #P user umenu 107 926 70 9109543 1 64 942 0; #X add display; #X add lowpass; #X add highpass; #X add bandpass; #X add bandstop; #X add peaknotch; #X add lowshelf; #X add highshelf; #X add resonant; #X add allpass; #P comment 390 1106 53 9109513 bandwidth; #P comment 268 1106 29 9109513 gain; #P comment 207 1106 27 9109513 freq; #P comment 329 1106 35 9109513 Q or S; #P flonum 390 1090 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 329 1090 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 268 1090 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 207 1090 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 167 1150 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 228 1150 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 289 1150 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 350 1150 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 411 1150 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 80 1151 45 9109513 *~ 0.1; #P newex 80 1102 44 9109513 lp.shhh~; #P newex 80 1127 45 9109513 biquad~; #P newex 167 1127 254 9109513 unpack 0. 0. 0. 0. 0.; #P newex 80 1176 44 9109513 dac~; #P user filtergraph~ 167 955 255 124 139 9 0. 22050. 0.0625 16. 1 1 1 0 0 1 1; #X frgb 193 193 255; #X brgb 233 233 255; #X rgb2 0 0 0; #X rgb3 130 130 130; #X rgb4 0 0 0; #X rgb5 118 121 166; #X rgb6 210 74 54; #X rgb7 255 22 22; #X linmarkers 5512.5 11025. 16537.5; #X logmarkers 10. 100. 1000. 10000.; #X nfilters 1; #X setfilter 0 1 1 0 0 540. 0.2 1.295754 0.0001 22050. 0.0001 16. 0.5 25.; #X done; #P comment 205 1171 190 9109513 leftmost outlet outputs a list of 5 coefs; #P user umenu 1028 921 70 9109543 1 64 937 0; #X add display; #X add lowpass; #X add highpass; #X add bandpass; #X add bandstop; #X add peaknotch; #X add lowshelf; #X add highshelf; #X add resonant; #X add allpass; #P comment 1311 1098 53 9109513 bandwidth; #P comment 1189 1098 29 9109513 gain; #P comment 1128 1098 27 9109513 freq; #P comment 1250 1098 35 9109513 Q or S; #P flonum 1311 1082 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1250 1082 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1189 1082 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1128 1082 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1088 1142 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1149 1142 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1210 1142 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1271 1142 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1332 1142 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 1001 1145 43 9109513 *~ 0.1; #P newex 1001 1120 43 9109513 biquad~; #P newex 1088 1119 254 9109513 unpack 0. 0. 0. 0. 0.; #P comment 1359 902 35 9109513 Q or S; #P flonum 1359 923 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 1001 1172 44 9109513 dac~; #P flonum 1311 923 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1263 923 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P user filtergraph~ 1088 947 255 124 139 9 0. 22050. 0.0625 16. 1 1 1 0 0 1 1; #X frgb 193 193 255; #X brgb 233 233 255; #X rgb2 0 0 0; #X rgb3 130 130 130; #X rgb4 0 0 0; #X rgb5 118 121 166; #X rgb6 210 74 54; #X rgb7 255 22 22; #X linmarkers 5512.5 11025. 16537.5; #X logmarkers 10. 100. 1000. 10000.; #X nfilters 1; #X setfilter 0 1 1 0 0 44. 8. 0.707116 0.0001 22050. 0.0001 16. 0.5 25.; #X done; #P comment 1243 872 55 9109513 cutoff or center freq; #P comment 1309 881 58 9109513 gain (linear); #P comment 1126 1163 190 9109513 leftmost outlet oputputs a list of 5 coefs; #P window setfont "Microsoft Sans Serif" 12.; #P comment 294 538 129 17170444 Right wave crashing back int o first wave; #P comment 106 538 95 17170444 Left wave hitting the shore; #P user scope~ 108 576 238 706 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0; #P user scope~ 298 576 428 706 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0; #P window setfont "Sans Serif" 9.; #P newex 1145 469 50 9109513 route list; #P newex 1145 491 50 9109513 print; #P newex 695 464 50 9109513 route list; #P window setfont "Microsoft Sans Serif" 12.; #P comment 538 266 95 17170444 Wave from Left Hand Side; #P comment 997 266 99 17170444 Wave from Right Hand Side; #P window setfont "Microsoft Sans Serif" 9.; #P comment 1068 176 61 17170441 Adjust the volume; #P comment 1068 149 61 17170441 Sets the volume to 80; #P window setfont "Sans Serif" 9.; #P comment 1221 176 100 9109513 Brownian noise object; #P window setfont "Microsoft Sans Serif" 9.; #P comment 84 263 55 17170441 triggering on/off with a metronome; #P comment 848 173 153 17170441 divide by 50 to get the desired delay to offset the two wave crashes; #P window setfont "Microsoft Sans Serif" 10.; #P comment 206 31 254 17170442 Directions: 1) Click on the toggle box (on/off button) 2) Click on the startwindow/stop to turn audio on/off; #B frgb 231 231 231; #P window setfont "Microsoft Sans Serif" 9.; #P newex 811 179 34 17170441 / 50.; #P number 792 101 35 9 3000 8000 3 262 0 0 0 221 221 221 222 222 222 0 0 0; #P message 1135 148 32 17170441 80; #P comment 481 408 56 17170441 adjusting amplitude of left wave; #P comment 918 413 61 17170441 adjusting amplitude of right wave; #P comment 1215 416 158 17170441 Directions on how use the graphical breakpoint function editor are at the top of this page; #P comment 764 409 158 17170441 Directions on how use the graphical breakpoint function editor are at the top of this page; #P message 1045 335 32 17170441 20; #P comment 1081 326 26 17170441 fade time; #P message 601 337 32 17170441 20; #P comment 1061 455 46 17170441 fade out the wave; #P comment 604 449 46 17170441 fade out the wave; #P window setfont "Sans Serif" 9.; #P message 1036 437 74 9109513 0.3 1000 \, 0 7200; #P newex 1036 415 51 9109513 delay 1200; #P message 588 432 74 9109513 0.3 1000 \, 0 7200; #P newex 588 410 51 9109513 delay 1200; #P message 758 326 51 9109513 range 0 1; #P newex 695 486 50 9109513 print; #P message 759 349 73 9109513 setdomain \$1; #P hidden message 1264 466 33 9109513 set 16; #P hidden message 812 463 33 9109513 set 20; #P window setfont "Microsoft Sans Serif" 9.; #P comment 1 250 82 17170441 1) on/off to play the waves repeatedly; #P comment 495 64 196 17170441 ¥ÊShift-click on a point to remove it; #P comment 495 51 193 17170441 ¥ÊClick in empty space to add a new point; #P comment 495 21 192 17170441 ¥ÊClick and release the mouse on a point to see where it is. Drag on the point to move it.; #P comment 495 79 196 17170441 ¥ Cmd-click on a point to toggle sustain; #P comment 1009 519 75 17170441 scale amplitude; #P comment 832 98 134 17170441 wave intervals randomly range from 3 seconds to 8 seconds; #N picture; #K replace 248; #K set 0 54001664 16 1048593 50269184 -131072 4718592 4718592 0 1048592 0 10551794 1456194 1229783040 0 1048592 1198688624 1756324458 65546 0 1048592 10092544 16744512 0 1048592 4 0 4718592 4718592 1048608 196616 0 0 0 0 1048592 0 1048592 4195025 3211264 -24641451 -24641451 -24640427 -2004353024 -24641451 -24641451 -24640427 -2004353024 -24641451 -24641451 -24640683 -2004352975 65160 5635720 5635720 72714376 65160 5635720 5635720 72714376 65160 5635720 5635720 55937160 3211264 -24641451 -24641451 -24640427 -2004353024 -24641451 -24641451 -24640427 -2004353024 -24641451 -24641451 -24640683 -2004352998 63317 65109 -16713899 16776789 -16713899 3407445 12544 16680960 16680968 1434976256 1435011072 16680960 -96248 1435041791 1435011072 16680960 872318983 1434989363 1435011072 822083838 -2013265666 -2012719736 21896 -2013265666 -2013200386 -2012719736 -43640 -2013265666 -2013252610 -2012785272 859002248 -2013253329 8947712 1426098312 1426098176 1435011072 8947967 1442809992 1442810111 1435011072 8947763 1429440648 1429440563 1435011072 838795267 1426085120 -27982848 1426085205 -33553153 1442797055 -27980545 1442796885; #K set 128 -16777165 1429427507 -27982285 1429427541 855650568 8913032 1434976392 16680961 8977920 126418824 1435041672 -96244 -7799040 8926088 1434989448 872318979 864563968 822608008 8934792 8913150 -1996554230 -2013265784 -7842424 -7798786 -1996488950 -2013265784 864572808 864564222 -1996541183 -2013253376 16680964 1435011072 1442744575 165888 16680964 1435011327 1442744575 -16611328 16680964 1435011123 1442744575 855738368 419430646 1426325589 1426063606 1426390869 1426063606 1426273109 1426075904 16680960 1442744320 1442744324 1435011072 16680960 1442744320 1442744324 1435011072 16680960 1442744320 1442744323 1435011072 822083838 -2013243906 -2013243906 -2012981880 -2013265666 -2013243906 -2013243906 -2012981880 -2013265666 -2013243906 -2013243906 -2013047416 -2013262091 22002 22002 22014 255 -2013233152 0 322 6 55312384 55574528 55836672 56098816 56360960 56623104 56885248 57147392 57409536 57671680 57933824 58195968 58458112 58720256 58982400 59244544 59506688 59768832 60030976 60293120 60555264 60817408 61079552 61341696 61603840 61865984 62128128 62390272 62652416 62914560 63176704 63438848 63700992 63963136 64225280 64487424 64749568 65011712; #P vpicture 1220 204 1237 222; #P comment 1239 205 165 17170441 scope~ displays the signal graphically; #P user panel 1217 197 188 31; #X brgb 233 252 211; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P window setfont "Microsoft Sans Serif" 18.; #P comment 17 7 199 17170450 Beach Simulator; #B frgb 255 255 255; #P window setfont "Microsoft Sans Serif" 9.; #P comment 17 32 105 17170441 Final Research Project by: Mark Chiang; #B frgb 214 214 214; #P user panel 1 1 478 85; #X brgb 2 130 126; #X frgb 21 98 128; #X border 3; #X rounded 3; #X shadow 3; #X done; #P number 811 208 35 9 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P message 1000 335 32 17170441 0.33; #P message 556 337 32 17170441 0.44; #P comment 850 207 125 17170441 gets the random delay time from drunk in milliseconds; #P message 173 314 29 17170441 50; #P message 261 315 28 17170441 100; #P window setfont "Microsoft Sans Serif" 18.; #P comment 58 96 106 17170450 drunk; #B frgb 21 56 9; #P window setfont "Microsoft Sans Serif" 9.; #P comment 56 122 292 17170441 Take a random walk with specified constraints; #P user panel 53 91 426 50; #X brgb 244 255 207; #X frgb 232 255 158; #X border 2; #X rounded 2; #X shadow 2; #X done; #P message 155 384 55 17170441 seed 0; #P comment 348 269 78 17170441 sets max step size of right inlet (to 100); #P message 349 313 27 17170441 -100; #P comment 51 144 351 17170441 Drunk takes two optional arguments. The first argument is a range specification \, the second is a step size. Drunk does a random walk \, constrained between zero and the range 100 and step of up to one less than the maximum step size. The default range is 100 \, the default current value is 50 \, and the default step size is --100 (steps of 0 and 1 are allowed). A negative step size is the same as a positive one \, except that steps of size 0 are never made.; #P comment 111 466 144 17170441 current value of the random walk used to randomize intervals of the wind \, waves \, and the delay of the wave crashes; #P slider 54 365 19 100 3000 60; #P comment 53 334 64 17170441 bang for a random step; #P button 80 501 15 0; #P toggle 56 285 15 0; #P newex 56 307 64 17170441 metro 7000; #P number 80 470 31 9 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 260 272 64 17170441 sets max value (to 100); #P slider 244 276 15 51 0 2; #P number 244 335 29 9 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P slider 332 274 15 50 0 2; #P number 332 333 28 9 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P button 134 334 15 0; #P comment 172 271 64 17170441 sets current value to 50; #P number 156 334 37 9 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P slider 156 275 15 50 0 1; #P newex 156 359 186 17170441 drunk 100 100; #B color 5; #P comment 996 307 84 17170441 set gain of second wave to 0.33; #P button 741 174 15 0; #P newex 741 122 61 17170441 metro 5000; #P window setfont "Microsoft Sans Serif" 10.; #P number 1045 358 42 10 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 1000 357 35 10 0. 0.5 3 262 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont "Microsoft Sans Serif" 9.; #N vpatcher 15 55 615 455; #P window setfont "Microsoft Sans Serif" 9.; #P comment 265 186 126 17170441 Arg 2: fade time; #P comment 265 166 90 17170441 Arg 1: gain; #P comment 231 64 75 17170441 fade time; #P comment 122 64 39 17170441 gain; #P comment 30 64 45 17170441 input; #P comment 43 241 181 17170441 with amplitude adjusted; #N comlet (signal) output; #P outlet 43 224 15 0; #P newex 43 193 99 17170441 *~; #N comlet (int/float) fade time in ms; #P inlet 262 84 15 0; #N comlet (float) gain; #P inlet 132 84 15 0; #N comlet (signal) input; #P inlet 43 84 15 0; #P newex 219 132 89 17170441 f $2; #P newex 132 104 97 17170441 t f b; #P newex 132 164 133 17170441 line~ $1; #P comment 58 222 55 17170441 output; #P connect 4 0 7 0; #P connect 7 0 8 0; #P connect 5 0 2 0; #P connect 2 0 1 0; #P connect 1 0 7 1; #P connect 2 1 3 0; #P fasten 3 0 1 1 224 159 260 159; #P fasten 6 0 3 1 267 115 303 115; #P pop; #P newobj 980 416 50 17170441 p gain2~; #P window setfont "Microsoft Sans Serif" 10.; #P number 601 359 44 10 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 556 358 35 10 0. 0.5 3 262 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont "Microsoft Sans Serif" 9.; #N vpatcher 15 55 615 455; #P window setfont "Microsoft Sans Serif" 9.; #P comment 50 430 75 17170441 fade time; #P comment 265 186 126 17170441 Arg 2: fade time; #P comment 265 166 90 17170441 Arg 1: gain; #P comment 231 64 75 17170441 fade time; #P comment 122 64 39 17170441 gain; #P comment 30 64 45 17170441 input; #P comment 43 241 181 17170441 with amplitude adjusted; #N comlet (signal) output; #P outlet 43 224 15 0; #P newex 43 193 99 17170441 *~; #N comlet (int/float) fade time in ms; #P inlet 262 84 15 0; #N comlet (float) gain; #P inlet 132 84 15 0; #N comlet (signal) input; #P inlet 43 84 15 0; #P newex 219 132 89 17170441 f $2; #P newex 132 104 97 17170441 t f b; #P newex 132 164 133 17170441 line~ $1; #P comment 58 222 55 17170441 output; #P connect 4 0 7 0; #P connect 7 0 8 0; #P connect 5 0 2 0; #P connect 2 0 1 0; #P connect 1 0 7 1; #P connect 2 1 3 0; #P fasten 3 0 1 1 224 159 260 159; #P fasten 6 0 3 1 267 115 303 115; #P pop; #P newobj 536 410 50 17170441 p gain1~; #P message 900 349 31 17170441 clear; #P comment 859 330 109 17170441 Erase graphical function; #P comment 1220 141 107 17170441 NN factor controls the ÒgranularityÓ of the signal.; #P comment 1072 121 325 17170441 Creates the ocean wave sounds; #B frgb 255 255 255; #P newex 1175 169 42 17170441 lp.pfff~; #P number 1175 148 35 9 0 31 67 262 0 0 0 221 221 221 222 222 222 0 0 0; #P user scope~ 1210 228 1340 358 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0; #P window setfont "Microsoft Sans Serif" 18.; #P comment 1073 94 208 17170450 Brown Noise; #B frgb 255 255 255; #P window setfont "Microsoft Sans Serif" 9.; #P comment 1130 264 41 17170441 Volume; #P user gain~ 1175 229 30 36 100 7 1.071519 7.94321 10.; #P newex 741 238 80 17170441 delay; #P flonum 812 507 52 9 0. 1000. 3 262 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 812 532 64 17170441 mstosamps~; #P number 663 580 47 9 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 663 557 35 17170441 * 32; #P user hslider 663 534 18 128 32 1 0 0; #P newex 537 599 136 17170441 delay~; #B color 5; #P button 665 387 15 0; #P user function 665 410 765 460 1 1 0 0; #X frgb 82 82 82; #X brgb 204 204 204; #X rgb2 0 0 0; #X rgb3 255 255 255; #X rgb4 0 0 0; #X rgb5 0 0 0; #X add 0. 0. 0; #X add 294.935974 0.24 0; #X add 1400.935059 0.68 0; #X add 2580.660156 0.64 0; #X add 3318.007813 0.4 0; #X add 5813.180176 0.08 0; #X add 8185.924805 0.16 0; #X add 9846.831055 0.24 2; #X add 10440. 0.24 0; #X domain 10440.; #X range 0. 1.; #X done; #P newex 554 488 30 17170441 line~; #P newex 537 515 27 17170441 *~; #P newex 537 652 54 17170441 dac~; #P comment 681 381 75 17170441 ¥Êtrigger a sound to be delayed; #P comment 591 581 30 17170441 input; #P comment 590 616 35 17170441 output; #P comment 713 581 55 17170441 delay time; #P comment 592 652 100 17170441 sound in left channel; #P comment 864 507 97 17170441 ... or set delay in ms; #P comment 663 507 125 17170441 control delay time in 32 sample increments...; #P message 849 619 27 17170441 stop; #P message 783 619 65 17170441 startwindow; #P flonum 1264 509 52 9 0. 1000. 3 262 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 1264 536 64 17170441 mstosamps~; #P number 1115 584 47 9 0 0 0 262 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 1115 561 35 17170441 * 32; #P user hslider 1115 538 18 128 32 1 0 0; #P newex 981 603 144 17170441 delay~; #B color 5; #P button 1115 394 15 0; #P user function 1115 416 1215 466 1 1 0 0; #X frgb 82 82 82; #X brgb 204 204 204; #X rgb2 85 85 85; #X rgb3 255 255 255; #X rgb4 0 0 0; #X rgb5 0 0 0; #X add 0. 0. 0; #X add 711.821838 0.12 0; #X add 4270.903809 0.12 0; #X add 6406.338379 0.36 0; #X add 7948.628906 0.44 0; #X add 9846.831055 0.28 2; #X add 10440. 0. 0; #X domain 10440.; #X range 0. 1.; #X done; #P newex 997 494 30 17170441 line~; #P newex 981 520 27 17170441 *~; #P newex 937 653 54 17170441 dac~; #P comment 1135 387 79 17170441 ¥Êtrigger a sound to be delayed; #P comment 1036 587 30 17170441 input; #P comment 1035 622 35 17170441 output; #P comment 1165 585 55 17170441 delay time; #P comment 993 653 101 17170441 sound in right channel; #P comment 1314 508 88 17170441 ... or set delay in ms; #P comment 1115 511 125 17170441 control delay time in 32 sample increments...; #P comment 781 605 100 17170441 2) start/stop audio; #B frgb 255 255 255; #P comment 634 327 26 17170441 fade time; #P comment 555 309 79 17170441 set gain of first wave to 0.44; #P user panel 1067 90 340 51; #X brgb 99 1 3; #X frgb 149 1 50; #X border 2; #X rounded 2; #X shadow 2; #X done; #P comment 565 515 75 17170441 scale amplitude; #P user panel 853 326 128 46; #X brgb 255 253 207; #X frgb 218 224 40; #X border 2; #X rounded 0; #X shadow 0; #X done; #P window setfont "Microsoft Sans Serif" 10.; #P comment 492 4 320 17170442 Directions on how use the graphical breakpoint function editor; #P window setfont "Sans Serif" 9.; #P number 1135 171 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P user panel 52 280 25 25; #X brgb 2 130 126; #X frgb 21 98 128; #X border 2; #X rounded 2; #X shadow 2; #X done; #P user panel 773 599 124 43; #X brgb 2 130 126; #X frgb 21 98 128; #X border 3; #X rounded 3; #X shadow 3; #X done; #P background; #P window setfont "Microsoft Sans Serif" 9.; #P newex 814 275 34 17170441 * 1.5; #P user panel 65 760 138 50; #X brgb 0 0 0; #X frgb 0 67 99; #X border 2; #X rounded 2; #X shadow 2; #X done; #P fasten 80 0 85 0 85 490 77 490 77 362 59 362; #P connect 82 0 81 0; #P fasten 70 0 80 0 161 378 85 378; #P connect 85 0 83 0; #P connect 80 0 83 0; #P connect 180 0 179 0; #P connect 179 0 181 0; #P connect 181 0 177 0; #P connect 176 0 179 1; #P hidden connect 82 0 195 0; #P hidden connect 41 0 146 0; #P connect 181 0 177 1; #P fasten 81 0 74 0 61 331 139 331; #P hidden connect 95 0 72 0; #P connect 71 0 72 0; #P connect 72 0 70 0; #P hidden fasten 90 0 70 0 160 406 139 406 139 357 161 357; #P fasten 74 0 70 0 139 357 161 357; #P connect 195 1 176 0; #P connect 308 0 176 0; #P connect 176 0 178 0; #P connect 178 0 186 0; #P hidden connect 82 0 95 0; #P hidden connect 82 0 309 0; #P connect 309 0 308 0; #P connect 176 1 187 0; #P connect 178 1 185 0; #P fasten 180 0 335 0 28 1121 28 754 243 754; #P hidden connect 94 0 77 0; #P connect 78 0 77 0; #P fasten 77 0 70 1 249 357 249 357; #P hidden connect 82 0 94 0; #P connect 176 2 188 0; #P connect 178 2 184 0; #P hidden connect 21 0 145 0; #P connect 176 3 189 0; #P connect 76 0 75 0; #P hidden connect 88 0 75 0; #P fasten 75 0 70 2 337 357 337 357; #P hidden connect 273 0 204 0; #P hidden connect 253 0 204 0; #P hidden connect 230 0 204 0; #P hidden connect 218 0 204 0; #P hidden connect 212 0 204 0; #P hidden connect 236 0 204 0; #P hidden connect 265 0 204 0; #P connect 204 0 176 5; #P hidden connect 82 0 88 0; #P connect 178 3 183 0; #P hidden connect 289 0 205 0; #P hidden connect 247 0 205 0; #P hidden connect 241 0 205 0; #P hidden connect 217 0 205 0; #P hidden connect 223 0 205 0; #P hidden connect 259 0 205 0; #P hidden connect 295 0 205 0; #P connect 205 0 176 6; #P connect 176 4 190 0; #P connect 178 4 182 0; #P connect 206 0 176 7; #P connect 332 0 296 0; #P connect 296 0 301 0; #P connect 301 0 224 0; #P connect 224 0 208 0; #P connect 208 0 209 0; #P connect 209 0 218 0; #P connect 218 0 210 0; #P connect 210 0 226 0; #P connect 226 0 231 0; #P connect 231 0 227 0; #P connect 227 0 228 0; #P connect 228 0 230 0; #P connect 230 0 229 0; #P connect 229 0 213 0; #P connect 213 0 211 0; #P connect 211 0 214 0; #P connect 214 0 212 0; #P fasten 51 0 61 0 1180 306 541 306; #P connect 61 0 40 0; #P fasten 40 0 44 0 542 592 542 592; #P fasten 44 0 39 0 542 621 542 621; #P fasten 142 0 41 0 700 483 700 483 559 483; #P fasten 119 0 41 0 593 483 559 483; #P connect 41 0 40 1; #P hidden connect 82 0 97 0; #P connect 97 0 62 0; #P connect 62 0 61 1; #P fasten 63 0 61 2 606 377 581 377; #P connect 224 0 215 0; #P connect 215 0 216 0; #P connect 216 0 217 0; #P connect 217 0 219 0; #P connect 219 0 225 0; #P connect 225 0 220 0; #P connect 220 0 221 0; #P connect 221 0 222 0; #P connect 222 0 223 0; #P fasten 43 0 118 0 604 402; #P connect 118 0 119 0; #P hidden connect 82 0 124 0; #P connect 124 0 63 0; #P connect 332 0 298 0; #P connect 300 0 302 0; #P connect 302 0 260 0; #P connect 260 0 232 0; #P connect 232 0 233 0; #P connect 233 0 242 0; #P connect 242 0 234 0; #P connect 234 0 249 0; #P connect 249 0 254 0; #P connect 254 0 250 0; #P connect 250 0 251 0; #P connect 251 0 253 0; #P connect 253 0 252 0; #P connect 252 0 237 0; #P connect 237 0 235 0; #P connect 235 0 238 0; #P connect 238 0 236 0; #P hidden connect 113 0 45 0; #P connect 45 0 46 0; #P connect 46 0 47 0; #P fasten 48 1 47 0 871 577 668 577; #P connect 47 0 44 1; #P fasten 68 0 43 0 746 202 670 202; #P hidden connect 117 0 42 0; #P hidden connect 60 0 42 0; #P connect 43 0 42 0; #P hidden connect 115 0 42 0; #P hidden connect 80 0 333 0; #P connect 333 0 332 0; #P connect 298 0 300 0; #P connect 42 1 142 0; #P connect 142 0 116 0; #P connect 299 0 300 1; #P connect 332 0 299 0; #P connect 260 0 239 0; #P connect 239 0 240 0; #P connect 240 0 241 0; #P connect 241 0 243 0; #P connect 243 0 248 0; #P connect 248 0 244 0; #P connect 244 0 245 0; #P connect 245 0 246 0; #P connect 246 0 247 0; #P connect 247 0 255 0; #P connect 255 0 256 0; #P connect 256 0 257 0; #P connect 257 0 258 0; #P connect 258 0 259 0; #P hidden fasten 82 0 67 0 770 161 770 99 746 99; #P connect 67 0 68 0; #P connect 68 0 50 0; #P hidden connect 82 0 117 0; #P hidden connect 82 0 115 0; #P fasten 200 0 115 0 819 346 764 346; #P hidden connect 82 0 30 0; #P fasten 85 0 132 0 59 521 478 521 478 202 670 202 670 85 797 85; #P connect 132 0 67 1; #P fasten 132 0 133 0 816 116; #P connect 133 0 99 0; #P connect 99 0 50 1; #P hidden connect 82 0 113 0; #P connect 49 0 48 0; #P fasten 132 0 1 0 816 116 816 150 1011 150 1011 262 819 262; #P connect 1 0 200 0; #P connect 332 0 297 0; #P connect 297 0 303 0; #P connect 303 0 275 0; #P connect 275 0 261 0; #P connect 261 0 262 0; #P connect 262 0 268 0; #P connect 268 0 263 0; #P connect 263 0 269 0; #P connect 269 0 274 0; #P connect 274 0 270 0; #P connect 270 0 271 0; #P connect 271 0 273 0; #P connect 273 0 272 0; #P connect 272 0 266 0; #P connect 266 0 264 0; #P connect 264 0 267 0; #P connect 267 0 265 0; #P hidden connect 82 0 31 0; #P connect 275 0 281 0; #P connect 281 0 282 0; #P connect 282 0 283 0; #P connect 283 0 284 0; #P connect 284 0 286 0; #P connect 286 0 285 0; #P connect 285 0 287 0; #P connect 287 0 288 0; #P connect 288 0 289 0; #P connect 289 0 291 0; #P connect 291 0 292 0; #P connect 292 0 293 0; #P connect 293 0 294 0; #P connect 294 0 295 0; #P fasten 30 0 19 0 788 647 942 647; #P fasten 31 0 19 0 854 647 942 647; #P fasten 51 0 64 0 1180 306 985 306; #P connect 64 0 20 0; #P fasten 20 0 24 0 986 596 986 596; #P connect 24 0 19 1; #P fasten 144 0 21 0 1150 489 1002 489; #P fasten 121 0 21 0 1041 489 1002 489; #P connect 21 0 20 1; #P hidden connect 82 0 98 0; #P connect 98 0 65 0; #P connect 65 0 64 1; #P connect 196 0 159 0; #P connect 159 0 160 0; #P connect 160 0 155 0; #P connect 152 0 159 1; #P fasten 66 0 64 2 1050 377 1025 377; #P hidden connect 82 0 174 0; #P connect 160 0 155 1; #P fasten 23 0 120 0 1057 409; #P connect 120 0 121 0; #P hidden connect 82 0 126 0; #P connect 126 0 66 0; #P hidden connect 82 0 152 0; #P connect 174 1 152 0; #P connect 311 0 152 0; #P connect 152 0 158 0; #P connect 158 0 165 0; #P hidden connect 82 0 312 0; #P connect 312 0 311 0; #P fasten 50 0 23 0 746 377 1120 377; #P connect 23 0 22 0; #P hidden connect 117 0 22 0; #P hidden connect 115 0 22 0; #P hidden connect 60 0 22 0; #P hidden connect 114 0 25 0; #P connect 25 0 26 0; #P connect 26 0 27 0; #P fasten 28 1 27 0 1323 581 1120 581; #P connect 27 0 24 1; #P connect 152 1 166 0; #P hidden connect 82 0 131 0; #P connect 131 0 4 0; #P connect 22 1 144 0; #P connect 144 0 143 0; #P connect 158 1 164 0; #P connect 55 0 56 0; #P connect 56 0 51 0; #P connect 4 0 51 0; #P connect 152 2 167 0; #P fasten 56 0 54 0 1180 198 1215 198; #P connect 158 2 163 0; #P connect 152 3 168 0; #P hidden connect 82 0 197 0; #P connect 197 0 153 0; #P connect 153 0 152 5; #P hidden connect 82 0 114 0; #P connect 29 0 28 0; #P connect 158 3 162 0; #P connect 154 0 152 6; #P hidden connect 82 0 198 0; #P connect 198 0 154 0; #P connect 152 4 169 0; #P connect 158 4 161 0; #P connect 156 0 152 7; #P pop;