The following contains excerpts from the book, Electronic Music and Sound Design (Alessandro Cipriani, Maurizio Giri).
This book alternates between teaching concepts of sound design, theoretically, and showing how it is done using Max/MSP. As David Zicarelli, the publisher of Max/MSP, states in the foreword: “This book provides the language for expressing the concepts in terms of the underlying theory (of sound design). Knowing the theory is essential…to be more than someone who can turn a volume knob.”
The book is designed as a college course, presented with software downloads to install into Max/MSP. It states in the Introduction, that for self-learning, the book will require 300 hours of study. Essentially, Max/MSP is a programming language. “The activities in this book that concentrate on replacing parts of algorithms, completing unfinished algorithms, correcting algorithms with bugs, and reverse engineering, have been included in order to pose problems to which the reader is encouraged to find his or her own solutions.”
“Max/MSP is an interactive graphic environment for music, audio processing, and multimedia. It is used through the world by musicians, composers, sound designers, visual artists, and multimedia artists, and it has become a de facto standard for modern technologically-enabled creative projects in both the musical and in the visual spheres. It is a graphical programming language.”
At our Music School in Dallas, Texas we teach our students how to successfully use sound synthesis in their creative work.
Following are the basic keyboard commands:
(Mac)
<Command-n> Create a new patcher window
<Command-e> Toggle between edit mode and performance mode
<Command-m> Call up the Max window
Select patch cords at the same time we are selecting objects – Hold Alt, while dragging the selected rectangle.
Copy an object – hold Alt, click and drag to tear off a copy.
<Command-y> Objects become perfectly aligned.
<Command-k> Hide one or more objects and patch cords, select them while in edit mode. To reverse this action: <Command-I>
“With the message box mechanism, we can only send pre-defined values that we have placed into message boxes ahead of time. If we wish to change numbers arbitrarily while a patch is running, we need to use a number box for integer values or a flonum (or float number box) for floating point values.
Type i to instantly create an integer box.
Type f to instantly create a flonum box.
Substitute dac~ for ezdac~ It starts and stops MSP upon receiving the startwindow and stop messages, respectively.
comment box can be inserted by typing c
+~ performs signal summing. Summing two signals simply means overlapping them, as we would on a mixer.
If the multiplier exceeds the value 0.5, the sound acquires a distorted waveform…any multiplication factor greater than 0.5 will exceed the limits of the converter.
<Command-e> Toggle between performance mode and edit mode.
phasor~ an oscillator that generates a ramp that goes from 0 to 1, and cyclicly repeats at a frequency that we can adjust exactly as we did with cycle~. The phasor~ object produces a sawtooth waveform that is ‘cut in half’, so to speak, because it goes from 0 to 1, instead of from -1 to 1, oscillating only in the positive range.
(To create a ‘Max library’…do not put it in the folder that contains Max, but somewhere else.)
print object will display whatever it receives in the Max window; the object is created by using an object box, type the word print.
bang – means go, begin, execute.
We teach our composition students at our music school in Dallas, Texas how to program in Max/MSP using these objects.
line~ a generator of single segments that move from value to value over specified time intervals.
preset object remembers values contained in the number boxes.
curve~ object functions much like line~, but it needs a third parameter in addition to value and time interval, which is called the curve parameter or curve factor, and which varies between -1 and 1. Positive values will yield exponential curves, and negative numbers will yield logarithmic curves.
dbtoa decibel to object conversion.
levelmeter~ confirms the sound pressure level in dB for the signal produced.
Observing a level meter gives composition students at our music school in Dallas, Texas the sense of a live mixing or studio environment while they are programming.
line~ object eliminates artifacts, smoothing any unruly sequence of values.
append object adds its argument to any message it receives, and because of this, every time a number is generated by the float number box, the append object produces a two-item list consisting of the number received followed by the number 20. Connect the append object to a line~ object, and in this way we pass from one amplitude value to its successor gradually, over a 20 millisecond interval.
sfplay~ read an audio file that was previously saved to disk.
buffer~ allocates a chunk of memory to store data temporarily, to read the buffered sound.
loadbang generates a bang every time the patch is opened.
“Originally, Max/MSP was simply called Max, and it was a system very similar to the one that we are learning, except that it could only generate messages to control external devices. Max was not able to generate or manipulate audio signals; in essence, only black patch cords were available. Later, when the production of faster chips introduced the possibility for realtime synthesis and signal processing on small computer systems without dedicated hardware, MSP was introduced in order to take advantage of these new capabilities and to produce and process signals. Yellow-and-black cords were added to extend the capabilities of the existing system.
Students at our music school in Dallas, Texas will learn the difference between using signal virtual cables and audio virtual cables in Max/MSP.
MSP is an extension of Max that enables sound synthesis and signal processing. It is not a stand-alone program, but instead, a series of objects (both of the object box and of the graphical variety) that extend those found in Max, and which can generally be distinguished by a name that end with a tilde (‘~’). With MSP objects, you can implement all of the functions typical of sound synthesis and signal processing; there are oscillators, envelopes, filters, delay lines, etc. The characteristic that unites all of these functions, as we have said, that they operate on signals, or digital sound.
The combination of Max with MSP gives composition students at our music school in Dallas, Texas a powerful set of tools to be able to create practically anything they can imagine.
What is digital sound? It is the numerical representation of physical sound waves. Inside a digital system, sounds (whether electronic or natural) are saved as a series of numbers.”
“In the Max environment, there is a general rule that says that objects exchange their messages in an ordered right-to-left sequence. This means that is a set of messages is generated at the same instant, the message generated by the right-most object (and within a single object, the message which is generated at the right-most outlet) precedes all other message. It follows that the last message to be generated is the left-most.
The order of execution goes form the right to the left. This goes for all Max objects…very important and which has a profound influence on more complex patches. Patches will often not behave as we expect them to, because we have not constructed them taking the order of execution into account.”
This is only true of Max, not MSP.
This is a powerful program, useful not only to sound-design, but in the manipulation of all aspects of multi-media presentations, including lighting and video. Students at our music school in Dallas, Texas are highly benefitted to have a working knowledge of this program.