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

Mixing and signal routing


As you know, we can mix signals inside MSP implicitly by just connecting two outlets to the same inlet or by using [+~] explicitly. But there is more to routing and organizing mixes of course. Before looking at an attempt to make mixing in Max a bit more convenient, let's look at a simple mixing block that's needed quite often: a dry/wet mixer. We need this quite often; as soon as we build an effect or want to do a crossfade, we'll need to think about this. A naive approach would look like this:

We just scale one signal by a fade value f, and the other one by 1-f. However, this idea has a problem: when the signal at the control inlet is at 0.5, we multiply both inlets with 0.5 (which is equal to an attenuation by 6 dB). The problem is that adding two correlated waves is equal to an amplification by 6 dB, but by mixing two uncorrelated signals (two noise sources for example), we will only get an amplification by 3 dB. So the upshot is that we are too quiet in the...