Scripting Max Patches

Manually creating objects with a mouse and a keyboard in a patch is the main way that people work in Max, but it’s not the only way. Maybe you want to make a new object appear, move an object across the screen, make a new connection between objects, or change the audio driver settings on the fly. Through scripting, you can make these kinds of changes to a patch procedurally. For changing things about how Max, MSP, or Jitter work, you can send messages to Max. For changing things about the patcher or making new objects, use the thispatcher object or Javascript. Scripting opens up a whole extra dimension to Max, giving you greater control over the environment.

Thispatcher Example Patch

Javascript Example Patches

See Also

Name Description
Controlling Jitter with Messages Controlling Jitter with Messages
Controlling Max with Messages Controlling Max with Messages
Controlling MSP with Messages Controlling MSP with Messages
Javascript in Max Javascript in Max
Max JS Tutorial 1: Basic JavaScript Max JS Tutorial 1: Basic JavaScript
thispatcher Send messages to a patcher