Book Image

Multimedia Programming Using Max/MSP and TouchDesigner

By : Patrik Lechner
Book Image

Multimedia Programming Using Max/MSP and TouchDesigner

By: Patrik Lechner

Overview of this book

Max 6 and TouchDesigner are both high-level visual programming languages based on the metaphor of connecting computational objects with patch cords. This guide will teach you how to design and build high-quality audio-visual systems in Max 6 and TouchDesigner, giving you competence in both designing and using these real-time systems. In the first few chapters, you will learn the basics of designing tools to generate audio-visual experiences through easy-to-follow instructions aimed at beginners and intermediate. Then, we combine tools such as Gen, Jitter, and TouchDesigner to work along with Max 6 to create 2D and 3D visualizations, this book provides you with tutorials based on creating generative art synchronized to audio. By the end of the book, you will be able to design and structure highly interactive, real-time systems.
Table of Contents (19 chapters)
Multimedia Programming Using Max/MSP and TouchDesigner
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Connecting Max and TD


We can use Max to analyze audio to send the data to TD, or even better, if we generate audio in Max, we can just send the data generating the audio to TouchDesigner. There is no need to do FFT on a stereo sum if we can just get the parameters of a synth directly. Things such as BPM detection or fundamental pitch estimation are possible if we don't have the data directly, but they are, of course, a bit unreliable and unstable.

First, let's look at how Max and Touch can communicate. The weapon of choice here is UDP/OSC. User Datagram Protocol (UDP) is a protocol that is part of the transport layer of the OSI model. Compared to Transport Control Protocol (TCP), it has the advantage of being faster and the disadvantage of being more unreliable, which is not an issue for our purposes most of the time. OSC is, as you probably know, a very widespread protocol, that somewhat became the commonly accepted MIDI successor. We won't go very deep into the structure of OSC, so, for...