Digital Sound & Music: Concepts, Applications, & Science, Chapter 3, last updated 6/25/2013
The pitch of the note is determined by setting the keynote to the correct one and then
accumulating offsets from there. As the correct notepitch is set for each successive note,
it is sent to the handlenote patcher, which makes a MIDI message from this information
and outputs the MIDI note. To understand this part of the patcher completely, you need
to know a little bit about MIDI messages, which we don’t cover in detail until Chapter 6.
It suffices for now to understand that middle C is sent as a number message with the
value 60. Thus, a C major scale starting on middle C is created from the MIDI notes 60,
62, 64, 65, 67, 69, 71, and 72.
Max has many types of built-in objects with specialized functions.
We’ve given you a quick overview of some of them in this example. However,
as a beginning Max programmer, you can’t always tell from looking at an
object in programming mode just what type of object it is and how it functions.
To determine the types of objects and look more closely at the implementation,
you need to unlock the patcher, as shown in Figure 3.52. Then if you select an
object and right click on it, you get a menu that tells the type of object at the
top. In the example in Figure 3.53, the object is a kslider. From the context
menu, you can choose to see the Help or an Inspector associated with the object.
To see the full array of Max built-in objects, go to Max Help from the main
Help menu, and from there to Object by Function.
Figure 3.53 Context menu for a kslider object
Previous Page Next Page