Tuesday, March 11, 2008

MaxMSP Assignment

When I first started using MaxMSP, I found that it was very similar to the Analog Box in that both programs work by selecting different devices in the form of graphic icons and connecting them together to create a new device.

However, it also meant that I had much of the same problems I had with Analog Box 2. That is there were eleventy-billion different gadgets in each program, and it wasn't entirely clear what all of them did. Fortunately, once I studied the tutorials further and sought out assistance from Mr. Dugas, this project became a lot easier.

What I really wanted to accomplish with this project was to compose my own piece of music. I was able to do this to an extent by using assigning pitch to the table function.

Click here to listen



The text of my patch is as follows:


max v2;
#N vpatcher 32 43 939 571;
#P origin 262 125;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden message 823 193 64 9109513 controllers;
#P hidden newex 823 172 52 9109513 loadbang;
#P hidden newex 823 212 45 9109513 midiinfo;
#P message 893 236 52 9109513 stop;
#P button 893 202 15 0;
#P message 893 219 52 9109513 start 512;
#P message 893 253 52 9109513 record;
#P message 893 287 52 9109513 delay 0;
#P message 893 304 52 9109513 print;
#P message 893 348 52 9109513 write;
#P newex 783 369 86 9109513 seq midisamp.midi;
#B color 5;
#P message 893 323 52 9109513 read;
#P button 887 440 15 0;
#P newex 783 424 50 9109513 midiout;
#P newex 771 263 50 9109513 midiin;
#P user umenu 770 241 95 9109543 1 64 257 0;
#X add "Creative SB Live! External MIDI";
#P user uslider 512 191 23 97 128 1 0 0;
#P user uslider 254 173 23 97 128 1 0 0;
#P user uslider 11 147 23 97 128 1 0 0;
#P button 126 111 15 11;
#P user uslider 126 147 23 97 128 1 0 0;
#P user led 637 186 17 17 2 150;
#P user uslider 724 -18 14 119 501 1 0 0;
#P number 724 125 35 9 50 900 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 676 157 58 9109513 metro 100;
#N counter 6 0 127;
#X flags 0 0;
#P newobj 676 185 83 9109513 counter 6 0 127;
#N vtable 128 20 74 230 241 0 128 table21a;
#P newobj 676 209 74 9109513 table table21a;
#P user dial 676 404 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 676 452 35 9 0 127 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 676 477 51 9109513 pgmout 3;
#P newex 676 375 52 9109513 noteout 3;
#P newex 676 345 88 9109513 makenote 60 420;
#P toggle 572 76 32 0;
#P hidden newex 572 149 45 9109513 s toggle;
#P window setfont Impact 36.;
#P comment 238 10 280 14680100 Jordan's machine;
#B color 6;
#P user panel 223 -2 295 66;
#X brgb 247 193 51;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P window setfont "Sans Serif" 12.;
#P window linecount 2;
#P comment 285 68 227 9109516 Behold the fruit's of my labours of learning the MaxMSP program.;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 11 23 45 9109513 r toggle;
#P user swatch 238 403 227 82;
#P user dial 512 405 40 40 127 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 512 452 35 9 0 127 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 512 477 51 9109513 pgmout 5;
#P number 512 310 35 9 0 0 4096 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 512 171 15 14;
#P newex 512 369 52 9109513 noteout 5;
#P newex 512 336 94 9109513 makenote 127 800;
#P toggle 254 111 15 0;
#P button 11 111 15 3;
#P user led 435 220 17 17 4 150;
#P newex 376 255 64 9109513 random 100;
#P button 376 227 15 6;
#P number 376 288 35 9 0 0 4096 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 376 356 66 9109513 noteout 10;
#P newex 376 332 99 9109513 makenote 127 400;
#P number 254 300 35 9 0 0 4096 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 254 153 15 2;
#P newex 512 149 58 9109513 metro 400;
#P newex 254 131 73 9109513 pipe 0 10 600;
#P button 153 78 22 0;
#P number 282 256 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 282 234 40 9109513 notein;
#P newex 254 356 52 9109513 noteout 4;
#P newex 254 332 99 9109513 makenote 127 400;
#P newex 180 -20 104 9109513 scale 0 127 50 1000;
#P number 180 7 34 9 50 1000 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 180 -47 39 9109513 ctlin;
#P user dial 126 408 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 126 456 35 9 0 127 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 126 481 47 9109513 pgmout 2;
#P user dial 11 408 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 newex 179 296 27 9109513 + 2;
#P newex 147 296 27 9109513 + 10;
#P newex 126 51 64 9109513 metro 800;
#P number 126 268 35 9 0 0 4096 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 126 380 47 9109513 noteout 2;
#P newex 126 346 99 9109513 makenote 127 200;
#P hidden newex 238 494 100 9109513 bgcolor 100 100 50;
#P newex 60 296 27 9109513 - 2;
#P newex 24 296 31 9109513 + 12;
#P number 11 456 35 9 0 127 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 11 481 51 9109513 pgmout 1;
#P newex 11 79 58 9109513 metro 200;
#P number 11 268 35 9 0 0 4096 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 11 380 47 9109513 noteout 1;
#P newex 11 346 88 9109513 makenote 77 200;
#P window linecount 3;
#P comment 75 -47 100 9109513 Use the modulation dial on the keyboard to change the tempo;
#P window linecount 2;
#P comment 544 111 100 9109513 Click the switch to listen to something.;
#P window setfont "Sans Serif" 12.;
#P window linecount 1;
#P comment 257 383 188 9109516 Pick a colour \, any colour. . .;
#P window setfont "Sans Serif" 9.;
#P comment 1 492 338 9109513 The dials on the bottom all manipulate the diferent instruments that play.;
#P window linecount 3;
#P comment 282 192 68 9109513 The keyboard keys can be used here.;
#P hidden connect 52 0 8 0;
#P fasten 17 0 8 0 131 74 16 74;
#P connect 8 0 42 0;
#P connect 42 0 71 0;
#P connect 71 0 7 0;
#P connect 7 0 5 0;
#P fasten 12 0 5 0 65 332 16 332;
#P fasten 11 0 5 0 29 332 16 332;
#P connect 5 0 6 0;
#P connect 20 0 10 0;
#P hidden connect 10 0 9 0;
#P fasten 7 0 11 0 16 292 29 292;
#P connect 5 1 6 1;
#P fasten 7 0 12 0 16 292 65 292;
#P hidden fasten 52 0 17 0 16 46 131 46;
#P connect 17 0 70 0;
#P connect 70 0 69 0;
#P connect 69 0 16 0;
#P connect 16 0 14 0;
#P fasten 19 0 14 0 184 332 131 332;
#P fasten 18 0 14 0 152 332 131 332;
#P connect 14 0 15 0;
#P connect 23 0 22 0;
#P hidden connect 22 0 21 0;
#P connect 14 1 15 1;
#P fasten 16 0 18 0 131 292 152 292;
#P fasten 17 0 31 0 131 74 158 74;
#P fasten 16 0 19 0 131 292 184 292;
#P connect 24 0 26 0;
#P connect 26 0 25 0;
#P connect 25 0 17 1;
#P hidden connect 51 0 13 0;
#P fasten 31 0 43 0 158 104 259 104;
#P connect 43 0 32 0;
#P connect 32 0 34 0;
#P connect 34 0 72 0;
#P connect 72 0 35 0;
#P fasten 30 0 35 0 287 292 259 292;
#P connect 35 0 27 0;
#P connect 27 0 28 0;
#P connect 27 1 28 1;
#P connect 29 0 30 0;
#P hidden fasten 32 1 39 0 322 220 381 220;
#P connect 39 0 40 0;
#P connect 40 0 38 0;
#P connect 38 0 36 0;
#P connect 36 0 37 0;
#P connect 36 1 37 1;
#P hidden fasten 39 0 41 0 381 246 412 246 412 208 440 208;
#P hidden fasten 52 0 33 0 16 46 517 46;
#P fasten 31 0 33 0 158 104 517 104;
#P connect 33 0 46 0;
#P connect 46 0 73 0;
#P connect 73 0 47 0;
#P connect 47 0 44 0;
#P connect 44 0 45 0;
#P connect 50 0 49 0;
#P hidden connect 49 0 48 0;
#P connect 44 1 45 1;
#P hidden connect 57 0 56 0;
#P fasten 65 0 68 0 681 180 642 180;
#P hidden fasten 57 0 65 0 577 144 681 144;
#P connect 65 0 64 0;
#P connect 64 0 63 0;
#P connect 63 0 58 0;
#P connect 58 0 59 0;
#P connect 62 0 61 0;
#P hidden connect 61 0 60 0;
#P connect 58 1 59 1;
#P hidden fasten 57 0 64 2 577 144 741 144 741 179 717 179;
#P connect 67 0 66 0;
#P connect 66 0 65 1;
#P hidden connect 87 0 74 0;
#P hidden fasten 74 1 75 0 860 260 776 260;
#P fasten 75 0 79 0 776 359 788 359;
#P connect 86 0 79 0;
#P connect 84 0 79 0;
#P connect 83 0 79 0;
#P connect 82 0 79 0;
#P connect 85 0 79 0;
#P connect 81 0 79 0;
#P connect 80 0 79 0;
#P connect 78 0 79 0;
#P connect 79 0 76 0;
#P hidden connect 88 0 89 0;
#P hidden connect 89 0 87 0;
#P connect 79 1 77 0;

No comments: