3.12.2008

MIDI Project

Here is the Max Code for the MIDI Project for my Sound Class. I made a MIDI Controller with 3 Pads and 3 Synths, a Keyboard, and Mouse-sensitive capabilities. The max code is for the patch without the photograph background, just a plain blue background as the photo makes the text file for the patch way too long ( like 500 pages).


midi project unlocked

Picture 3



max v2;
#N vpatcher 60 45 1360 832;
#P origin 0 -2;
#P window setfont "Sans Serif" 9.;
#P hidden newex 83 202 58 196617 random 88;
#P hidden newex 88 173 58 196617 metro 500;
#P hidden newex 989 58 82 196617 bgcolor 0 0 128;
#P hidden button 586 165 15 0;
#P hidden button 561 206 15 0;
#P hidden newex 561 121 35 196617 sel 32;
#P hidden number 561 66 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 561 31 40 196617 key;
#P hidden newex 215 201 58 196617 random 88;
#P toggle 97 109 46 0;
#P hidden newex 78 290 52 196617 noteout 1;
#P hidden newex 77 244 97 196617 makenote 111 111;
#P hidden number 93 329 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 29 347 20 196617 98;
#P toggle 100 261 52 0;
#P hidden newex 40 374 51 196617 pgmout 4;
#P hidden newex 88 605 52 196617 noteout 4;
#P hidden newex 70 547 95 196617 makenote 111 111;
#P hidden newex 65 496 56 196617 random 88;
#P hidden newex 60 456 58 196617 metro 500;
#P hidden number 712 691 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 649 700 20 196617 12;
#P hidden newex 649 724 51 196617 pgmout 7;
#P hidden newex 562 722 52 196617 noteout 7;
#P user kslider 400 353 54 0 36 48 31 12 0 128 128 128 128 128 128 255 255 255 0 0 0 0 0 0;
#P hidden newex 560 592 93 196617 makenote 127 127;
#P hidden number 411 338 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 348 347 26 196617 102;
#P toggle 335 257 51 0;
#P hidden newex 348 371 51 196617 pgmout 6;
#P hidden newex 353 597 52 196617 noteout 6;
#P hidden newex 352 548 95 196617 makenote 111 111;
#P hidden newex 352 495 56 196617 random 88;
#P hidden newex 348 442 58 196617 metro 500;
#P hidden number 259 336 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 198 346 26 196617 103;
#P toggle 220 257 50 0;
#P hidden newex 196 369 51 196617 pgmout 5;
#P hidden newex 201 595 52 196617 noteout 5;
#P hidden newex 200 546 95 196617 makenote 111 111;
#P hidden newex 200 493 56 196617 random 88;
#P hidden newex 196 440 58 196617 metro 500;
#P hidden newex 758 140 80 196617 receive number;
#P hidden newex 768 468 66 196617 send number;
#P hidden flonum 766 173 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 766 195 119 196617 scale -200. 900 60. 90.;
#P hidden number 815 57 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 756 51 26 196617 101;
#P hidden newex 760 91 51 196617 pgmout 4;
#P hidden newex 885 244 52 196617 noteout 4;
#P hidden newex 825 218 94 196617 makenote 111 111;
#P toggle 555 253 36 0;
#P hidden message 656 277 14 196617 1;
#P hidden message 733 359 30 196617 zero;
#P hidden message 766 359 34 196617 reset;
#P hidden newex 721 286 58 196617 metro 200;
#P hidden newex 733 312 40 196617 key;
#P hidden newex 733 335 52 196617 sel 48 49;
#P hidden toggle 721 424 15 0;
#P hidden number 856 424 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden number 811 424 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden number 766 424 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden number 901 424 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 721 387 66 196617 mousestate;
#B color 5;
#P hidden message 546 269 29 196617 stop;
#P toggle 212 108 45 0;
#P hidden button 505 218 15 0;
#P hidden number 430 27 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden number 275 46 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 359 39 20 196617 90;
#P toggle 332 106 44 0;
#P hidden newex 368 64 51 196617 pgmout 3;
#P hidden newex 369 307 52 196617 noteout 3;
#P hidden newex 368 258 95 196617 makenote 111 111;
#P hidden newex 368 205 56 196617 random 88;
#P hidden newex 364 152 58 196617 metro 500;
#P hidden message 212 38 20 196617 95;
#P hidden newex 196 69 51 196617 pgmout 2;
#P hidden newex 218 305 52 196617 noteout 2;
#P hidden newex 217 256 97 196617 makenote 111 111;
#P hidden newex 215 172 58 196617 metro 500;
#P window setfont "Sans Serif" 14.;
#P comment 96 225 100 196622 synth 1;
#P comment 216 227 100 196622 synth 2;
#P comment 520 417 100 196622 vibraphone;
#P window setfont "Sans Serif" 9.;
#P hidden number 95 58 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 60 49 20 196617 96;
#P hidden newex 60 86 51 196617 pgmout 1;
#P window setfont "Sans Serif" 12.;
#P window linecount 3;
#P comment 598 248 100 196620 on/off for mouse tracking synth;
#P window setfont "Sans Serif" 14.;
#P window linecount 1;
#P comment 96 86 100 196622 Pad 1;
#P comment 209 84 100 196622 Pad 2;
#P comment 332 83 100 196622 Pad 3;
#P window setfont "Sans Serif" 18.;
#P comment 179 42 100 196626 Pads;
#P window setfont "Sans Serif" 14.;
#P comment 332 227 100 196622 synth 3;
#P window setfont "Sans Serif" 18.;
#P comment 187 189 100 196626 Synths;
#P window linecount 5;
#P comment 430 94 100 196626 Press Spacebar to Begin Pads and Synths;
#P window linecount 3;
#P comment 544 106 100 196626 Press Any key to Stop;
#P window setfont "Sans Serif" 14.;
#P window linecount 5;
#P comment 429 250 100 196622 Individually Control Pads and Synths with Toggles on Left;
#P window setfont "Sans Serif" 24.;
#P window linecount 1;
#P comment 413 38 363 196632 Jen's Spacey Midi Controller;
#P hidden connect 85 0 82 0;
#P hidden connect 84 0 82 0;
#P hidden connect 12 0 11 0;
#P hidden connect 13 0 11 0;
#P hidden connect 33 0 78 0;
#P hidden fasten 83 0 78 0 64 455 65 453;
#P hidden connect 78 0 79 0;
#P hidden connect 79 0 80 0;
#P hidden connect 97 0 86 0;
#P hidden connect 86 0 87 0;
#P hidden connect 96 0 97 0;
#P hidden connect 33 0 96 0;
#P hidden connect 88 0 96 0;
#P hidden connect 80 0 81 0;
#P hidden connect 31 0 88 0;
#P hidden connect 86 1 87 1;
#P hidden connect 31 0 83 0;
#P hidden connect 80 1 81 1;
#P hidden connect 29 0 20 0;
#P hidden connect 21 0 20 0;
#P hidden connect 63 0 60 0;
#P hidden connect 62 0 60 0;
#P hidden connect 33 0 56 0;
#P hidden fasten 61 0 56 0 201 439;
#P hidden connect 56 0 57 0;
#P hidden connect 57 0 58 0;
#P hidden connect 58 0 59 0;
#P hidden connect 31 0 32 0;
#P hidden fasten 33 0 17 0 220 157;
#P hidden fasten 32 0 17 0 220 155;
#P hidden connect 17 0 89 0;
#P hidden connect 89 0 18 0;
#P hidden connect 18 0 19 0;
#P hidden connect 31 0 61 0;
#P hidden connect 58 1 59 1;
#P hidden connect 18 1 19 1;
#P hidden connect 31 0 27 0;
#P hidden fasten 31 0 69 0 352 409 340 409;
#P hidden connect 71 0 68 0;
#P hidden connect 70 0 68 0;
#P hidden connect 33 0 64 0;
#P hidden fasten 69 0 64 0 353 441;
#P hidden connect 64 0 65 0;
#P hidden connect 65 0 66 0;
#P hidden connect 66 0 67 0;
#P hidden connect 33 0 22 0;
#P fasten 27 0 22 0 369 151;
#P hidden connect 30 0 26 0;
#P hidden connect 28 0 26 0;
#P hidden connect 22 0 23 0;
#P hidden connect 23 0 24 0;
#P hidden connect 24 0 25 0;
#P hidden connect 66 1 67 1;
#P hidden connect 24 1 25 1;
#P hidden connect 93 0 31 0;
#P hidden connect 94 0 33 0;
#P hidden connect 31 0 46 0;
#P hidden connect 73 0 72 0;
#P hidden connect 90 0 91 0;
#P hidden connect 91 0 92 0;
#P hidden connect 92 0 93 0;
#P hidden connect 72 0 74 0;
#P hidden connect 72 1 74 1;
#P hidden connect 92 1 94 0;
#P hidden connect 77 0 75 0;
#P hidden connect 76 0 75 0;
#P hidden connect 33 0 42 0;
#P hidden connect 46 0 42 0;
#P hidden connect 42 0 34 0;
#P hidden connect 43 0 34 0;
#P hidden connect 44 0 34 0;
#P hidden connect 34 0 39 0;
#P hidden connect 41 0 40 0;
#P hidden connect 40 0 44 0;
#P hidden connect 51 0 49 0;
#P hidden fasten 50 0 49 0 765 87;
#P hidden connect 55 0 53 0;
#P hidden connect 53 0 52 0;
#P hidden connect 40 1 43 0;
#P hidden connect 34 1 36 0;
#P hidden connect 36 0 54 0;
#P hidden connect 34 2 37 0;
#P hidden connect 52 0 47 0;
#P hidden connect 34 3 38 0;
#P hidden connect 47 0 48 0;
#P hidden connect 34 4 35 0;
#P hidden connect 47 1 48 1;
#P pop;

No comments: