Wednesday, March 14, 2007

CC2 – Week 2 – Max Quickstart:

CC2 – Week 2 – Max Quickstart:

Below is the picture example and text for recreating my first (graded) Max patch. I was already familiar with the objects and processes talked about in Thursday’s lesson, so this was not a big challenge. However, I suspect experienced users may know of more efficient ways to deal with this type of program.



I think the image above makes the process pretty self explanatory but here is the basic run down:


1) Toggle for start and stop of Metro

2) Number boxes (int and flo) for tempo selection of Metro

3) Counter to provide the count range

4) + operator for mapping numbers to relevant MIDI note range (changeable with number box on far right)

5) Makenote object providing velocity and duration of note values and receiving pitch value from + operator

6) Noteout object for sending MIDI data to the software synth.


Load it up and have a go. It kind of reminds me of that giant pinball machine in Sesame Street – 1 2 3 4, 5, 6 7 8 9, 10, 11 12…



Start of txt:

max v2;
#N vpatcher 18 44 804 670;
#P window setfont "Sans Serif" 9.;
#P flonum 599 107 73 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 655 297 35 9 0 115 259 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 227 343 31 196617 + 64;
#P number 227 304 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter 0 0 12;
#X flags 0 0;
#P newobj 392 265 77 196617 counter 0 0 12;
#P number 454 106 67 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 121 78 49 0;
#P newex 394 543 111 196617 noteout a 1;
#P newex 394 459 109 196617 makenote 70 127 500;
#P window setfont "Sans Serif" 20.;
#P newex 392 192 122 196628 metro 500;
#P window setfont "Sans Serif" 12.;
#P window linecount 3;
#P comment 625 239 100 196620 Choose starting note here:;
#P comment 388 51 100 196620 Choose tempo in integer values here:;
#P window linecount 4;
#P comment 569 36 100 196620 Choose tempo in Decimal number values here:;
#P window linecount 2;
#P comment 121 36 100 196620 Start and Stop here:;
#P fasten 9 0 10 0 397 297 232 297;
#P connect 10 0 11 0;
#P fasten 12 0 11 1 660 328 253 328;
#P fasten 7 0 4 0 126 138 397 138;
#P connect 4 0 9 0;
#P fasten 11 0 5 0 232 415 344 415 344 415 399 415;
#P connect 5 0 6 0;
#P fasten 5 1 6 1 498 503 449 503;
#P fasten 13 0 4 1 604 140 509 140;
#P fasten 8 0 4 1 459 140 509 140;
#P pop;

End of txt.

Reference:

Christian Haines. “Max Quickstart.” Lecture presented in tutorial room 407, 4th Floor Schulz building, University of Adelaide. 8th March 2007.

2 Comments:

At 3:38 PM, Blogger weimer said...

hey dave

thanks again for all your help with the counter, makenote and noteout objects today, appreciate it!!

 
At 4:40 PM, Blogger David J Dowling said...

No wukkas young padawan...

 

Post a Comment

<< Home