MAX /MSP/JITTER FOR MUSIC
2. Give this random object the argument 128 (Note: if you already
clicked away from the object, double click it in order to, once
again, enable typing within the object box)
Be sure to put a space between the word random and the argument 128 or else
Max will look for an object called random128 that does not exist.
18
3. Create a new button (press b)
4. Connect the outlet of button to the first inlet of random 128
5. Create a number box (press i)
6. Connect the outlet of random 128 to the inlet of the number box
FIGURE 2.1
outputs random numbers
from 0 to 127 when a
bang is received | the
_RAT_patch.maxpat
Do you remember that kid that you went to grammar school with who asked
you to count to 10 and when you started counting 1, 2, 3 . . . he stopped you
and laughed as he declared No! You forgot the number zero!!! Im sure you
remember that kid, or maybe you were that kid. Well, in Max, we almost always
start counting at the number 0, not the number 1. With the argument 128, the
random object will randomly output a total of 128 possible numbers starting at
0, which means that the range of numbers being randomly generated from random will be between 0 and 127.
7. Lock your patch and click the button to see random numbers
between 0 and 127
MIDI (Musical Instrument Digital Interface)
The MIDI protocol is a language that computers use to convey musical messages. Synthesizers as well as nearly all computer music software applications
deal with MIDI in some way. What are these MIDI messages?
In essence, MIDI is a bunch of messages in which a total of 128 numbers,
the numbers 0127, are used to represent musical elements like pitch and velocity. The lowest MIDI note, 0, is the pitch C at 5 octaves below middle C. The
number 1 is the C /D directly above that C, and so on. The MIDI note 12 is the
C above the lowest C.