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

Scripting and the this patcher


Now, we'll come to a topic that really gives us wings. There are sometimes situations when we think "come on, doesn't this work in Max? It should!" and often, scripting is there to help us. For example, can you remember when we talked about attributes; I mentioned that some attributes can't be changed dynamically. Now, let's change them all!

Consider this situation: you build an oscillator and it doesn't have any MIDI in or the one in which you just want to give the user the possibility to determine the frequency in Hz or as a note. Simple enough. However, we don't want to have two dials and switch between them; we want one [live.dial], and we want to just switch units. Try to move the [live.dial] object's unit attribute into the patcher to create a message box; it won't work. Alright, this might have something to do with the automations in Ableton Live and Max4Live devices, but we won't use our filter mini app in Live anyway. So, let's try something different...