max v2; video to audio control; #N vpatcher 339 88 1127 640; #P origin 22 -24; #P window setfont Times 10.; #P window linecount 1; #P comment 353 106 20 1310730 ms; #P window setfont Arial 12.; #P comment 452 335 93 131137548 Event Detection; #P window linecount 3; #P comment 623 186 45 131137548 MSP Audio Source; #P window linecount 2; #P comment 334 134 62 131137548 Amplitude Tracking; #P window setfont "Fixedwidth Serif" 10.; #P window linecount 1; #P message 378 59 14 1441802 1; #P window setfont Times 10.; #P comment 67 219 68 1310730 Effect Strength; #P window setfont "Fixedwidth Serif" 10.; #P newex 378 35 40 1441802 b 3; #P newex 378 14 53 1441802 loadbang; #N vpreset 1; #X append 1 2 15 14 1 toggle int 0 \; 17 158 238 flonum float 0. \; 23 197 321 flonum float 0. \; 26 81 449 ubumenu int 2 \; 29 16 536 toggle int 0 \; 39 124 696 flonum float; #X append 1 2 0.5 \; 42 285 329 multiSlider list 0 \; 43 106 319 number int 10 \; 45 269 502 flonum float -30. \; 47 269 589 number int 50 \; 48 269 676 number int 25 \; 51 308 676; #X append 1 2 toggle int 0 \; 55 55 238 toggle int 0 \; 59 197 380 flonum float -36. \; 60 269 415 flonum float 0. \; 61 197 238 flonum float 0. \; 69 354 564 uslider int 0 \; 71 361 367; #X append 1 2 flonum float 0. \; 74 55 733 flonum float 1. \; 82 464 533 number int 0 \; 83 464 495 number int 0 \; 84 464 571 number int 200 \; 92 240 238 flonum float 0. \; 104 219 33; #X append 1 2 flonum float 1. \;; #P preset 378 78 17 18; #P flonum 33 219 35 10 0. 0 1 22 0 0 0 221 221 221 222 222 222 0 0 0; #P objectname effectscalar; #P newex 11 237 32 1441802 * 1.; #P window linecount 2; #P message 144 30 65 1441802 read dishes.mov; #P window setfont Times 10.; #P window linecount 1; #P comment 16 15 68 1310730 Display Movie; #P comment 691 308 53 1310730 audio event; #P comment 408 361 105 1310730 expanded note amplitude; #P comment 320 41 16 1310730 or; #P window setfont "Fixedwidth Serif" 10.; #N vpatcher 40 55 357 364; #P window setfont Times 10.; #P comment 72 250 49 1310730 flashbulbs; #P comment 213 29 89 1310730 20 bangs to fade out; #N comlet (matrix) flashbulbs; #P outlet 57 250 15 0; #P window setfont "Fixedwidth Serif" 10.; #P newex 57 47 27 1441802 b; #N comlet (20 bangs) fade out flashbulbs; #P inlet 198 29 15 0; #N comlet (bang) trigger; #P inlet 57 29 15 0; #P message 207 200 53 1441802 scale \$1; #P newex 57 227 143 1441802 jit.scalebias @scale 2.; #P newex 57 154 143 1441802 jit.scalebias @scale 8.; #P message 207 154 62 1441802 2. \, 0. 20; #P newex 207 177 38 1441802 bline; #P newex 57 202 143 1441802 jit.op @op

-120.; #N comlet (float) audio peak dB; #P inlet 175 39 15 0; #P window setfont Times 10.; #P comment 152 26 63 1310730 audio peak dB; #P window setfont Arial 12.; #P comment 11 12 125 131137548 Detect an audio event (i.e. a "note") when it surpasses a certain dB threshold; #P fasten 22 0 23 0 60 195 20 195; #P connect 23 0 24 0; #P fasten 25 0 24 0 80 224 20 224; #P connect 24 0 26 0; #P fasten 26 0 20 0 20 268 11 268 11 149 60 149; #P fasten 21 0 20 0 195 418 11 418 11 149 60 149; #P connect 20 0 22 0; #P fasten 18 0 23 1 195 395 125 395 125 199 68 199; #P fasten 22 1 23 1 80 195 68 195; #P connect 22 1 25 0; #P fasten 3 0 20 1 180 149 82 149; #P fasten 8 0 24 1 423 62 110 62; #P fasten 5 0 19 0 180 103 137 103; #P fasten 19 0 11 0 137 207 155 207; #P connect 11 0 13 0; #P connect 13 0 14 0; #P connect 14 0 37 0; #P connect 37 0 10 0; #P connect 37 1 17 0; #P connect 17 0 9 0; #P fasten 26 0 9 0 20 345 175 345; #P connect 2 0 5 0; #P connect 5 0 3 0; #P connect 3 0 15 0; #P connect 15 0 19 1; #P connect 37 2 18 0; #P connect 18 0 21 0; #P connect 11 1 12 0; #P connect 12 0 13 1; #P fasten 36 0 12 1 277 233 215 233; #P fasten 11 0 12 1 155 233 215 233; #P connect 5 1 4 0; #P connect 4 0 3 1; #P fasten 17 0 16 0 175 353 263 353 263 124 233 124; #P fasten 26 0 16 0 20 349 263 349 263 124 233 124; #P connect 16 0 15 1; #P fasten 12 0 14 1 198 258 243 258; #P fasten 7 0 18 1 365 370 247 370; #P fasten 6 0 4 1 305 99 260 99; #P fasten 37 3 36 0 215 325 259 325 259 209 277 209; #P fasten 6 0 36 0 305 99 277 99; #P pop; #P newobj 415 287 271 1441802 patcher detectevent; #P number 319 106 35 10 0 0 65 22 0 0 0 221 221 221 222 222 222 0 0 0; #P user multiSlider 329 285 82 62 -120. 0. 1 3945 15 0 0 2 0 0 1; #M frgb 0 0 0; #M brgb 0 255 0; #M rgb2 127 127 127; #M rgb3 0 0 0; #M rgb4 37 52 91; #M rgb5 74 105 182; #M rgb6 112 158 18; #M rgb7 149 211 110; #M rgb8 187 9 201; #M rgb9 224 62 37; #M rgb10 7 114 128; #P message 642 32 92 1441802 open talk.aiff; #P window setfont Times 10.; #P comment 685 110 71 1310730 Output Volume; #P window setfont "Fixedwidth Serif" 10.; #P flonum 696 124 43 10 0. 0 1 22 0 0 0 221 221 221 222 222 222 0 0 0; #P objectname outputgain; #P message 696 142 43 1441802 \$1 100; #P newex 696 161 53 1441802 line~ 1.; #P newex 586 187 23 1441802 *~; #P newex 500 187 23 1441802 *~; #P newex 500 210 96 1441802 dac~; #P window setfont Times 10.; #P comment 551 17 63 1310730 Audio On/Off; #P window setfont "Fixedwidth Serif" 10.; #P message 571 55 73 1441802 startwindow; #P message 536 55 32 1441802 stop; #P newex 536 34 80 1441802 select 0 1; #P toggle 536 16 15 0; #P newex 536 80 96 1441802 adc~; #P newex 586 111 83 1441802 selector~ 2 2; #P user ubumenu 449 81 84 1441802 0 1 1 0; #X add No Sound; #X add Sound Input; #X add Soundfile; #X prefix_set 0 0 0; #P objectname soundsource; #P newex 500 111 83 1441802 selector~ 2 2; #P window setfont Times 10.; #P comment 321 183 49 1310730 Gain/Trim; #P window setfont "Fixedwidth Serif" 10.; #P flonum 321 197 41 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P objectname peakgain; #P message 153 61 32 1441802 read; #P message 92 61 38 1441802 start; #P message 57 61 32 1441802 stop; #P newex 57 36 80 1441802 select 0 1; #P message 684 55 32 1441802 open; #P flonum 238 158 59 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 1 84 128 1441802 jit.qt.movie 320 240; #P toggle 1 14 15 0; #P newex 1 36 53 1441802 metro 25; #P message 667 55 14 1441802 0; #P message 651 55 14 1441802 1; #N sfplay~ 2 80640 0 ; #P newobj 659 80 62 1441802 sfplay~ 2; #P newex 238 137 91 1441802 peakamp~; #B color 5; #P window setfont Times 10.; #P window linecount 2; #P comment 380 171 55 1310730 Noise Floor Threshold; #P user jit.pwindow 0 284 322 242 0 1 0 0 1 0; #P user panel 446 13 325 224; #X brgb 255 255 127; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P user panel 141 133 305 128; #X brgb 127 255 255; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P user panel 327 261 86 88; #X brgb 127 255 255; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P user panel 413 261 84 24; #X brgb 127 255 255; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P user panel 413 237 331 71; #X brgb 127 255 127; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P user panel 672 308 72 20; #X brgb 127 255 127; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P window setfont Arial 12.; #P window linecount 3; #P comment 34 136 85 131137548 Using Audio Amplitude to Control Video; #P user panel 34 133 79 51; #X brgb 255 127 255; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P fasten 15 0 14 0 6 33; #P connect 14 0 16 0; #P fasten 102 0 16 0 149 80 6 80; #P fasten 20 0 16 0 62 80 6 80; #P fasten 21 0 16 0 97 80 6 80; #P fasten 22 0 16 0 158 80 6 80; #P connect 16 0 76 0; #P connect 76 0 8 0; #P fasten 92 0 103 0 243 258 140 258 140 215 16 215; #P connect 104 0 103 1; #P fasten 15 0 19 0 6 32 62 32; #P connect 19 0 20 0; #P connect 19 1 21 0; #P fasten 103 0 76 1 16 258 136 258; #P fasten 107 1 102 0 398 56 374 56 374 22 149 22; #P connect 55 0 54 0; #P fasten 25 0 10 0 505 132 243 132; #P fasten 54 0 10 0 243 132 243 132; #P connect 10 0 17 0; #P connect 17 0 58 0; #P connect 58 0 61 0; #P connect 61 0 91 0; #P connect 91 0 92 0; #P fasten 14 0 54 1 6 57 140 57 140 26 265 26; #P fasten 55 0 85 0 243 78 279 78; #P connect 85 0 56 0; #P fasten 23 0 91 1 326 215 317 215; #P fasten 56 0 43 0 279 128 315 128 315 102 324 102; #P fasten 56 1 10 1 307 124 324 124; #P connect 43 0 10 1; #P fasten 77 1 42 0 420 261 334 261; #P fasten 89 0 90 0 372 400 334 400; #P fasten 96 0 71 0 420 351 372 351; #P connect 71 0 89 0; #P connect 106 0 107 0; #P connect 107 0 109 0; #P connect 109 0 105 0; #P fasten 59 0 91 2 385 215 391 215; #P connect 91 1 77 0; #P connect 77 1 60 0; #P connect 60 0 44 0; #P connect 44 0 96 0; #P fasten 69 0 80 0 569 418 500 418; #P connect 80 0 81 0; #P connect 81 0 83 0; #P connect 83 0 79 0; #P connect 79 0 78 0; #P fasten 26 0 25 0 454 107 505 107; #P connect 25 0 35 0; #P connect 35 0 34 0; #P connect 45 0 44 1; #P fasten 37 0 35 1 701 182 518 182; #P fasten 79 1 78 1 577 503 531 503; #P fasten 69 0 82 0 569 418 538 418; #P connect 82 0 79 1; #P connect 29 0 30 0; #P connect 30 0 31 0; #P connect 31 0 28 0; #P fasten 32 0 28 0 576 75 541 75; #P connect 28 0 25 1; #P fasten 45 0 96 2 507 308 568 308; #P connect 96 1 70 0; #P connect 70 0 69 0; #P connect 30 1 32 0; #P fasten 47 0 84 0 594 308 605 308 605 460 576 460; #P connect 84 0 79 2; #P fasten 11 0 25 2 664 102 577 102; #P fasten 26 0 27 0 454 107 591 107; #P connect 27 0 36 0; #P connect 36 0 34 1; #P connect 47 0 44 2; #P fasten 37 0 36 1 701 182 604 182; #P fasten 51 0 73 0 681 326 617 326; #P connect 73 0 97 0; #P connect 97 0 72 0; #P connect 28 1 27 1; #P fasten 107 2 41 0 413 56 447 56 447 12 647 12; #P fasten 11 2 12 0 716 101 724 101 724 51 656 51; #P fasten 11 1 27 2 690 106 663 106; #P fasten 41 0 11 0 647 75 664 75; #P connect 12 0 11 0; #P connect 13 0 11 0; #P fasten 18 0 11 0 689 75 664 75; #P connect 48 0 44 3; #P connect 44 1 51 0; #P connect 39 0 38 0; #P connect 38 0 37 0; #P fasten 74 0 11 1 738 76 716 76; #P fasten 77 0 97 1 392 265 744 265; #P pop;