Max Fundamentals: Juan P Bello
Max Fundamentals: Juan P Bello
Max Fundamentals: Juan P Bello
Juan P Bello
Max
• Max is a high-level graphic programming language, written in C
• It provides an interactive programming environment with
extensive libraries of pre-compiled and pre-tested algorithms
• It automatically generates code from graphical configurations
• The programmer can be oblivious to the details of writing code
• That allows rapid prototyping by (non)programmers
• On the other side it makes the language less flexible, and usually
performance is slower.
• Max is specifically intended for real-time computer music
applications
• It allows the creation of standalone applications
• It can be expanded by including so-called external objects written
in C and Java
A brief history
• First developed on the mid 80s by Miller Puckette, then at IRCAM
• The name Max honors Max V. Matthews
Changeable arguments
using $ signs
Set but not trigger
Append and
Prepend
Semi-colon
and directed
messages
Common objects: Operators
• Arithmetic operators
Line Tempo
Common objects: Delays/Random
• Other objects include delays:
• Tutorial 12
Max and MIDI
• Notes are characterized by notein as [pitch,velocity] pairs
• Note off messages are thus represented using velocity 0
• If notein data is used to control further processes in the Max patch,
then those 0 values can be very disrupting
• Stripnote, makenote and flush offer solutions to this
• xnotein and xnoteout can handle note off velocities
Max and MIDI
• Other objects include: bendin, bendout, ctlin, ctlout, pgmin,
pgmout, (and for more precision) xbendin, xbendout
• See Tutorial 21
Storing data
• However it is much more powerful to be able to store and index
arrays of data
• Functions like funbuff and table (Tutorial 32) can do this
Storing data
• The most versatile data structure in Max is coll (collection).
• It can store anything, indexed by any number or word
• Max documentation:
http://www.cycling74.com/twiki/bin/view/ProductDocumentation/
WebHome#Max_MSP_4_6
• Downloads: http://www.cycling74.com/downloads