TouchDesigner



[edit]

The Audio Play CHOP plays back a sound file through any attached audio output device using DirectSound. It supports .aif, .mp3, .mid, .wav and .m4a files up to 48.000 kHz, which can have mono, stereo or even up to 5.1 channels in them. The audio channels can then be routed to any speaker location that DirectSound uses. See Outputs section below.

NOTE: With the Audio Play CHOP, audio samples do not enter or pass through TouchDesigner, so you will not see them in CHOPs, and you cannot process them in CHOPs. The Audio Play CHOP starts an external process that opens the file and sends it directly to the the audio outputs of your computer. If you want to process the audio within TouchDesigner or output them into a Movie File Out TOP or Audio Device Out CHOP, use the Audio File In CHOP.

Scott TouchDesigner is a node-based procedural media application that we use to build real-time graphic systems. In this Learn TouchDesigner course we're going to start at the beginning and take a look at the interface, and just learn how to navigate around the software. AxiDraw and TouchDesigner By Lenore Edman on October 12, 2017 We’ve noticed a few artists on twitter and instagram using TouchDesigner as a tool in their workflow toward creating output with AxiDraw.

Touchdesigner Azure Kinect

  1. Communication with TouchDesigner is via OSC (using UDP). It is fully network-capable, so TouchDesigner can be running on a separate machine from Ableton. The Python in TDAbleton extensively uses Ableton's Live Object Model.
  2. At the TouchDesigner Summit in Montreal we'll be taking some time to talk about working with external Python Modules in TouchDesigner. While we'll have time to cover lots of information about how to incorporate external modules in Touch, we won't have a lot of time to talk through the wobbles that you might run into.
  3. Every feature in TouchDesigner and access to Pro Support. All Commercial features. Sync multiple process or machines.

The Audio Play CHOP contains a channel called state. This channel is 1 whenever any file is being played, 0 otherwise.

The first input (Input 0:Triggers) is used to trigger the audio file to play. The second input (Input 1: Volume) can be used to control volume, if no input is connected the Volume parameter will be used. The third input (Input 2: Pan) is for panning, no input assumes it is centered. When using the DAT List parameter, the inputs can contain mulitiple channels to manipulate each file individually. Multiple Audio Play CHOPs can output to different devices simutaneously.

It can also be triggered by the Trigger parameter below, but in this case if multiple files are specified via the DAT List, then all files will be played at the same time when triggered.

Sound files can also be triggered through the play() method audioplayCHOP_Class. Some advanced options are only available through the audioplayCHOP_Class.

The file can be read in from disk or from the web. Use http:// when specifying a URL.


Parameters - AudioPlay Page

Devicedevice - A menu of available audio devices to output to. Selecting default sets the audio device to that which is selected in Windows Control Panel>Sound>Playback.

Outputsoutputs -

Sound Filefile - .aif, .mp3, .mid, .wav or .m4a audio file. The file can be mono or stereo.

DAT Listdatlist - Links to a Table DAT which can be used as list of audio files to choose from. When using the DAT List, the first input (Input 0: Triggers) on the CHOP can contain mulitiple channels to fire the files in the list individually. Using the audioplay command the index can be specified directly.

Volumevolume - 0 = mute, 1 = full volume. Using the second input (Input 1: Volume) or the python .play(volume=val) method, will override the value of this parameter.

Modemode - - Determines how the audio is triggered when using the first input to trigger.

  • Play While Onon - Plays while input is 1.
  • Triggertrigger - Triggers once when input goes to 1.
  • Looploop - Plays and loops when input goes to 1.

Triggertrigger - Triggers the audio to play.

Cook Every Framecookalways - Forces CHOP to cook every frame.


Stereo Modestereo - Sets output to just 2 channels, front left and front right.

Outputs - The outputs on this page and the following Output 2 page are for routing to an audio device's different speaker outputs. Not all devices will support all outputs. For each speaker output, you can route any of the file's channels to play through it. For example, you can easily output the front left channel of the file to the all the front left speaker outputs, or you could output the front left channel to both front and rear speaker outputs. The value of each output parameter determines which channel from the file it plays, see below.

File's channel mapping for outputs

  • -1 - no audio plays through this output
  • 0 - File's front left channel will play
  • 1 - File's front right channel will play
  • 2 - File's rear left channel will play
  • 3 - File's rear right channel will play
  • 4 - File's center channel will play
  • 5 - File's sub or low frequency channel will play

The following speaker outputs are found on this parameter page.

Front Leftfrontleft - Play audio on this output based on mapping table above.

Front Rightfrontright - Play audio on this output based on mapping table above.

Front Centerfrontcenter - Play audio on this output based on mapping table above.

Low Frequencylowfrequency - Play audio on this output based on mapping table above.

Back Leftbackleft - Play audio on this output based on mapping table above.

Back Rightbackright - Play audio on this output based on mapping table above.

Front Left of Centerfrontleftcenter - Play audio on this output based on mapping table above.

Front Right of Centerfrontrightcenter - Play audio on this output based on mapping table above.

Back Centerbackcenter - Play audio on this output based on mapping table above.

Touchdesigner Asia


Parameters - Output 2 Page

The following speaker outputs are found on this parameter page.

Side Leftsideleft - Play audio on this output based on mapping table above.

Side Rightsideright - Play audio on this output based on mapping table above.

Top Centertopcenter - Play audio on this output based on mapping table above.

Top Front Lefttopfrontleft - Play audio on this output based on mapping table above.

Top Front Centertopfrontcenter - Play audio on this output based on mapping table above.

Top Front Righttopfrontright - Play audio on this output based on mapping table above.

Top Back Lefttopbackleft - Play audio on this output based on mapping table above.

Top Back Centertopbackcenter - Play audio on this output based on mapping table above.

Top Back Righttopbackright - Play audio on this output based on mapping table above.


Parameters - Common Page

Time Slicetimeslice - Turning this on forces the channels to be 'Time Sliced'. A Time Slice is the time between the last cook frame and the current cook frame.

Scopescope - To determine which channels get affected, some CHOPs use a Scope string on the Common page.

Sample Rate Matchsrselect - - Handle cases where multiple input CHOPs' sample rates are different. When Resampling occurs, the curves are interpolated according to the Interpolation Method Option, or 'Linear' if the Interpolate Options are not available.

  • Resample At First Input's Ratefirst - Use rate of first input to resample others.
  • Resample At Maximum Ratemax - Resample to the highest sample rate.
  • Resample At Minimum Ratemin - Resample to the lowest sample rate.
  • Error If Rates Differerr - Doesn't accept conflicting sample rates.

Export Methodexportmethod - - This will determine how to connect the CHOP channel to the parameter. Refer to the Export article for more information.

  • DAT Table by Indexdatindex - Uses the docked DAT table and references the channel via the index of the channel in the CHOP.
  • DAT Table by Namedatname - Uses the docked DAT table and references the channel via the name of the channel in the CHOP.
  • Channel Name is Path:Parameterautoname - The channel is the full destination of where to export to, such has geo1/transform1:tx.

ExportRootautoexportroot - This path points to the root node where all of the paths that exporting by Channel Name is Path:Parameter are relative to.

Export Tableexporttable - The DAT used to hold the export information when using the DAT Table Export Methods (See above).


Touchdesigner download
  • Input 0 -
  • Input 1 -
  • Input 2 -

TouchDesigner Build:

CHOPs
• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
Retrieved from 'https://docs.derivative.ca/index.php?title=Audio_Play_CHOP&oldid=19328'

This beginner level TouchDesigner tutorial covers instancing with the Geometry COMP, a technique that lets you copy one piece of geometry many times in an efficient way. To accomplish this we go through various methods for generating and manipulating CHOP data to represent position, rotation and color values. Instancing is a flexible tool that is useful in a variety of applications. This tutorial provides a starter network that can be used for further explorations.

For more information on instancing check out Matthew Ragan’s Instant Instancing tutorial, and Elbur’z instancing example. The Operator Snippets also have useful examples on texture instancing (Help > Operator Snippets > Geometry COMP and choose the texture instancing example.) If you have questions, comments, suggestions or corrections please leave them below, and thanks for watching and reading!

If you’d like you can download an example .toe file.

TouchDesigner Build: 2019.14650 or later.

Topic Timestamps:

00:12 Intro

01:43 Building the “capsule” geometry

06:15 Setting up the render network and SSAO

09:01 Generating a grid of instances

12:33 Noise TOP to CHOP conversion

16:09 Adding rotation and translation with noise

20:27 Refining noise and adding motion

21:06 Coloring with the Lookup CHOP

24:50 Variations for exploration