Multimedia Programming Using Max/MSP and TouchDesigner
eBook - ePub

Multimedia Programming Using Max/MSP and TouchDesigner

  1. 404 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Multimedia Programming Using Max/MSP and TouchDesigner

About 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.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Multimedia Programming Using Max/MSP and TouchDesigner


Table of Contents

Multimedia Programming Using Max/MSP and TouchDesigner
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Max
Understanding the basic concepts of Max
Modular basis for expressions
When to use Max
Max – the message domain
Max Signal Processing
Jitter, Matrix, and video processing
Jitter data format
Summary
Exercises
2. Max Setup and Basics
Setting things up
Getting help
The Max-integrated help system
The forums
Externals
Other resources
Setting up Max
The audio status window
Setting up MIDI
Other preferences
Object defaults
File preferences
Installing externals
Other setup tips
Organizing finished code
Abstractions
Extras
Clippings
Packages
Projects
Prototypes
Basic Max patching and GUI
Objects in Max
Arguments
Attributes
Creating our Hello World program
Dissection and construction
Contents
The [print] object
The message box
The MSP-Hello World
A quick overview of GUI
Summary
3. Advanced Programming Techniques in Max
Introducing the synthesizer example
Initializing a patcher
Excursus of microscopic timing and message ordering
A bpatcher for MIDI input
Sending and receiving data
The #n notation
Collections of data
More message box magic
Structuring our patches
The pattr family – a communication system
Timing in Max
The event priority
Debugging
Smart ways to debug
The debugger
Optimizing
Scripting and the this patcher
Summary
4. Basic Audio in Max/MSP
Basic audio principles
Audio synthesis
Amplitude modulation
Ring modulation versus amplitude modulation
Tremolo
Feedback
Frequency modulation
Controlling FM
Feedback
Phase modulation
The poly~ object
Managing instances and patcher loading
Polyphony and voice allocation
Additive synthesis
Discrete Summation Formulae
Subtractive synthesis and filtering
The classic approach
Building an equalizer
The filter theory: an introduction
Waveshaping
Sampling and audio file playback
Mixing and signal routing
Conventional mixing
Summary
5. Advanced Audio in Max/MSP
More sampling
Granular sampling
FX
Stutter
Dynamics
Noise gate
Working with expanders
Limiter
Compressor
Reverberation
Poly as a cascade
Convolution
Taking a room's impulse response
FFT
Drawing a signal's spectrum
Simple convolution
An FFT filter
Spectral reverb and freezing
Recording and playback of FFT data
Transient detection
Sample-accurate sequencing
Summary
6. Low-level Patching in Gen
Introducing Gen
The Gen workspace
Exploring the differences between Max and Gen
Parameters through param
Buffers and data
Subpatchers and abstraction inside Gen
Genexpr and the CodeBox
Efficiency
Examples
The Karplus-Strong synthesis
A mass-spring system
Waveguides and scattering junctions
Further reading
Summary
7. Video in Max/Jitter
Inputting and outputting Jitter data
Getting started with the Jitter matrix
Matrix processing
Feedback and delay
Using OpenGL in Jitter
Geometry manipulation
Shaders and FX
Summary
8. Max for Live
Introducing the fundamentals of Max for Live
MIDI in/out
Audio in/out
Synchronization
Parameters and saving
The Live API
An example device – a parameter modulator
Summary
9. Basic Visualization Using TouchDesigner
The need for TouchDesigner
How to get help
Basics and UI of TouchDesigner
A scripting prologue
Hello World
COMPs
TOPs
CHOPs
SOPs
MATs
DATs
The operators
The viewer flag
The clone immune flag
The cooking flag
The bypass flag
The lock flag
The viewer active flag
The parameter dialog
Wires and links
The select OP
A closer look at timeslicing, CHOPs, and exporting
Panes
Components – structuring a project
Where am I?
Creating our first UI
Hierarchy
Abstraction
Palette
Local
Clones
What's happening in root?
Assign a text editor to TouchDesigner
Summary
10. Advanced Visualization Using TouchDesigner
The basic audio-reactive video
A 2D composting example
Replicator COMP
The me.digits expression as a way to individualize replicants
Connecting Max and TD
A component for lots of movies
Converting between OP families
Dealing with time
The Animation component
Using the animation COMP for nonlinear purposes
Synchronization
SMPTE LTC
Audio ramp
UDP
Introducing 3D rendering
SOPs
Assigning a material
The data inside SOPs
Summary
11. 3D Rendering and Examples
Interactive and non-procedural tools
The geometry viewer
Grouping by selection
The Modeler
The Geo COMP
Instancing
Camera, light, and shading
Cameras
A camera path
Cut and blend
Fog and FOV
Lights and shadows
Materials
Transparency
Render passes
Render picking and 3D GUIs
Examples of procedural modeling
A speaker
Structure
Modeling
Rendering
A waterfall plot
Structure
Modeling
A fractal texture
Modeling
Liquid
Structure
Modeling
Rendering
A house in a landscape
Structure
Modeling
Rendering
Summary
12. Connecting Our Software to the World
Analog synths and control voltage
Arduino and microcontrollers
An Arduino example project
Hardware requirements for the Arduino project
The Arduino code
Pure Data
Multi-touch screens
The TUIO protocol
Interfacing other programs
Open Sound Control (OSC)
MIDI
Keystrokes and simulated user activity
Audio and video
Multispeaker setups
Exhibitions
Exporting an application
Customizing an application
Collaborative work
Summary
Index

Multimedia Programming Using Max/MSP and TouchDesigner

Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all ...

Table of contents

  1. Multimedia Programming Using Max/MSP and TouchDesigner

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Multimedia Programming Using Max/MSP and TouchDesigner by Patrik Lechner in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.