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