max v2; #N vpatcher 10 59 1053 741; #P window setfont "Fixedwidth Serif" 18.; #P flonum 739 400 108 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont Times 18.; #P comment 721 592 211 1310738 video (double-click to open); #P comment 402 497 95 1310738 randomness; #P comment 54 526 185 1310738 mathematical expression; #P window setfont "Fixedwidth Serif" 18.; #P number 453 577 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 453 549 130 1441810 drunk 127 9; #P toggle 331 498 15 0; #P newex 331 518 108 1441810 metro 500; #P flonum 30 638 131 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 331 577 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 331 549 119 1441810 random 128; #N counter 0 15; #X flags 0 0; #P newobj 30 582 143 1441810 counter 0 15; #P toggle 30 526 15 0; #P newex 30 546 108 1441810 metro 500; #P newex 30 610 295 1441810 expr sin(($f1/16.)*6.2813); #N vpatcher 52 307 982 626; #P window setfont Times 18.; #P window linecount 1; #P comment 175 76 17 1310738 y; #P comment 121 76 17 1310738 x; #P comment 806 265 16 1310738 b; #P comment 751 265 16 1310738 g; #P comment 694 265 16 1310738 r; #P comment 639 265 16 1310738 a; #P comment 243 23 348 1310738 report the values in any chosen pixel of a video; #P window setfont "Fixedwidth Serif" 18.; #P number 791 244 55 18 0 255 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 735 244 55 18 0 255 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 679 244 55 18 0 255 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 623 244 55 18 0 255 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 160 96 55 18 0 239 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 101 96 55 18 0 319 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 0; #P newex 30 126 185 1441810 pack getcell 0 0; #P newex 455 216 346 1441810 unpack 0 0 val 0 0 0 0; #P newex 455 189 119 1441810 route cell; #P newex 181 162 284 1441810 jit.matrix 4 char 320 240; #P message 461 76 174 1441810 read dishes.mov; #P newex 461 47 97 1441810 loadbang; #P window linecount 1; #P message 389 76 64 1441810 start; #P window linecount 0; #P message 332 76 53 1441810 stop; #P newex 332 47 124 1441810 select 0 1; #P newex 219 109 229 1441810 jit.qt.movie 320 240 @vol 0 @autostart 0; #P newex 219 47 108 1441810 metro 250; #P toggle 219 24 15 0; #P fasten 1 0 11 0 224 74 35 74; #P fasten 12 0 11 1 106 121 122 121; #P fasten 11 0 8 0 35 156 186 156; #P fasten 2 0 8 0 224 156 186 156; #P fasten 13 0 11 2 165 121 209 121; #P connect 0 0 1 0; #P connect 1 0 2 0; #P fasten 5 0 2 0 394 103 224 103; #P fasten 4 0 2 0 337 103 224 103; #P fasten 7 0 2 0 466 103 224 103; #P fasten 0 0 3 0 224 43 337 43; #P connect 3 0 4 0; #P connect 3 1 5 0; #P connect 8 1 9 0; #P connect 9 0 10 0; #P connect 6 0 7 0; #P connect 10 3 14 0; #P connect 10 4 15 0; #P connect 10 5 16 0; #P connect 10 6 17 0; #P pop; #P newobj 708 612 240 1441810 patcher video example; #P number 654 555 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 603 555 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 603 522 119 1441810 unpack 0 0; #P user umenu 730 523 144 1441867 1 64 545 1; #X add Trackpad; #X add Keyboard; #P message 827 458 196 1441810 menu \, 0 \, poll 250; #P newex 827 429 97 1441810 loadbang; #P newex 603 495 137 1441810 hi; #P window setfont Times 18.; #P comment 554 465 224 1310738 connected USB joysticks \, etc.; #P toggle 653 268 15 0; #P toggle 569 101 15 0; #P window setfont "Fixedwidth Serif" 18.; #P number 627 125 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 571 125 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P message 571 179 130 1441810 reset \, poll; #P newex 571 150 97 1441810 loadbang; #P user ezdac~ 137 366 181 399 0; #P window setfont Times 18.; #P comment 91 410 138 1310738 generated in MSP; #P window setfont "Fixedwidth Serif" 18.; #P flonum 179 489 123 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 179 460 152 1441810 snapshot~ 500; #P newex 179 430 141 1441810 phasor~ 0.25; #P flonum 4 489 123 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 4 460 152 1441810 snapshot~ 500; #P newex 4 430 119 1441810 cycle~ 0.2; #P window setfont Times 18.; #P comment 548 303 123 1310738 timed processes; #P window setfont "Fixedwidth Serif" 18.; #P message 872 340 130 1441810 0 10001 250; #P message 739 340 130 1441810 1 10001 500; #P newex 739 372 86 1441810 line 0.; #P number 592 400 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #N counter 0 15; #X flags 0 0; #P newobj 592 371 143 1441810 counter 0 15; #P number 457 373 98 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 311 373 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 592 324 15 0; #P newex 592 344 108 1441810 metro 500; #P toggle 457 325 15 0; #P newex 457 345 130 1441810 clocker 500; #P toggle 311 325 15 0; #P newex 311 345 141 1441810 tempo 60 1 8; #P window setfont Times 18.; #P comment 12 329 137 1310738 (converted to dB); #P comment 65 185 164 1310738 input audio amplitude; #P window setfont "Fixedwidth Serif" 18.; #P flonum 158 302 128 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 12 302 128 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 158 273 64 1441810 AtodB; #P flonum 158 248 108 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 12 248 108 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 158 219 152 1441810 snapshot~ 500; #P newex 12 273 64 1441810 AtodB; #P newex 12 219 141 1441810 peakamp~ 500; #P toggle 12 164 15 0; #P newex 12 183 53 1441810 adc~; #P window setfont Times 18.; #P comment 765 60 191 1310738 onscreen sliders and dials; #P window setfont "Fixedwidth Serif" 18.; #P number 972 182 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P user uslider 972 80 18 82 128 1 0 0; #P number 884 148 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P user dial 884 103 40 40 128 1 0 0 159 270 1 1. 170 170 170 221 221 221 120 120 120 225 225 225 0 0 0 0 0 0; #P number 602 266 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 551 266 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 810 184 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 720 184 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 824 102 47 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P user pictslider 720 80 100 100 4 4 4 4 SliderDefaultKnob.pct 0 SliderDefaultBkgnd.pct 0 2163 0 8323072 127 1. 1.; #P user hslider 824 80 18 128 128 1 0 0; #P window setfont Times 18.; #P comment 506 53 56 1310738 mouse; #P window setfont "Fixedwidth Serif" 18.; #P number 339 162 47 18 0 255 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 285 162 47 18 0 255 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 198 108 47 18 0 127 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 119 108 47 18 0 127 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 55 108 47 18 0 127 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 6 108 47 18 0 127 3 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 551 239 367 1441810 unpack 0 0 0 0 0 0 0 0; #P newex 551 212 130 1441810 route mouse; #P user jit.pwindow 432 72 130 130 0 1 0 0 1 0; #P newex 569 73 127 1441810 mousestate; #P window setfont Times 18.; #P comment 266 114 149 1310738 computer keyboard; #P window setfont "Fixedwidth Serif" 18.; #P newex 339 134 64 1441810 keyup; #P newex 285 134 42 1441810 key; #P window setfont Times 18.; #P comment 5 59 260 1310738 MIDI data from an external source; #P window setfont "Fixedwidth Serif" 18.; #P newex 198 79 64 1441810 ctlin; #P newex 119 79 75 1441810 bendin; #P newex 6 79 109 1441810 notein; #P window setfont Times 24.; #P comment 222 21 531 1310744 A few of the many ways to generate numbers in Max; #P connect 57 0 58 0; #P connect 58 0 59 0; #P connect 1 0 12 0; #P connect 32 0 31 0; #P connect 31 0 33 0; #P connect 33 0 36 0; #P connect 36 0 34 0; #P connect 34 0 39 0; #P connect 82 0 81 0; #P connect 81 0 83 0; #P connect 83 0 80 0; #P connect 80 0 86 0; #P connect 1 1 13 0; #P connect 2 0 14 0; #P fasten 31 0 35 0 17 212 163 212; #P connect 35 0 37 0; #P connect 37 0 38 0; #P connect 38 0 40 0; #P connect 60 0 61 0; #P connect 61 0 62 0; #P connect 3 0 15 0; #P connect 5 0 16 0; #P connect 44 0 43 0; #P connect 43 0 49 0; #P connect 88 0 87 0; #P connect 87 0 84 0; #P connect 84 0 85 0; #P connect 6 0 17 0; #P fasten 87 0 89 0 336 545 458 545; #P connect 89 0 90 0; #P connect 46 0 45 0; #P connect 45 0 50 0; #P connect 9 1 10 0; #P connect 10 0 11 0; #P connect 11 0 24 0; #P fasten 66 0 8 0 576 206 565 206 565 68 574 68; #P connect 8 0 69 0; #P connect 8 1 67 0; #P connect 65 0 66 0; #P connect 48 0 47 0; #P connect 47 0 51 0; #P connect 51 0 52 0; #P connect 11 1 25 0; #P fasten 74 0 72 0 832 486 608 486; #P fasten 75 0 72 0 735 550 882 550 882 491 608 491; #P connect 72 0 76 0; #P connect 76 0 77 0; #P connect 8 2 68 0; #P connect 11 2 70 0; #P fasten 76 1 78 0 717 550 659 550; #P connect 20 0 22 0; #P connect 72 1 75 0; #P connect 54 0 53 0; #P fasten 55 0 53 0 877 367 744 367; #P connect 53 0 94 0; #P connect 20 1 23 0; #P connect 19 0 21 0; #P connect 73 0 74 0; #P connect 26 0 27 0; #P connect 28 0 29 0; #P pop;