💻
Coding for Creatives Extras
  • Hello
  • Templates & Shortcuts
    • Power of Negative 1
    • Modifiers
    • Start Codes
      • Processing Start Code
      • HTML, CSS, JavaScript Start Code
    • WASD Movement Code
      • Processing Example
      • Unity Example (3D)
      • Unity Example (2D Platformer)
    • Connecting Platforms
  • Useful Links
    • Share & Show Off
    • Software and Apps
    • Free & Affordable Game Assets
  • Exercises
    • Week 1
      • Week 1 Processing Exercise
    • Week 2
      • Week 2 Star Wars Name Exercise
      • Week 2 Mad Libs Exercise
    • Week 3
      • Week 3 Moving Squares Exercise
    • Week 4
      • Week 4-A Movement Using If Statements
      • Week 4-B Boundaries Using If Statements
      • Week 4-C Hover, Click, and Drag Effects
    • Week 5
      • Week 5-A Moving Shapes
      • Week 5-B Looping Arrays
      • Week 5-C Using User Input to Create Arrays
      • Week 5-D For and Foreach Loops in Unity
    • Week 6
      • Week 6-A Snake
      • Week 6-B 2D Character Movement (Unity)
    • Week 7
      • Week 7-A Mario Coin Catch (Unity)
      • Week 7-B Raycasting Example (Unity)
    • TouchDesigner Exercises
      • Colorful Text
      • Audio-Reactive 3D Shapes
      • TouchOSC
  • Glossary and Terms
    • Blank Space / Canvas Origin
    • Shapes / Primitives
    • Color
    • Movement
    • Control
    • Variables
      • Declaring Variables
      • Assigning a Variable
      • Using a Variable
      • Data Types
        • Floating Point or Float
        • Integer or Int
        • Boolean or Bool
        • String
      • Casting a Variable
    • Arrays
      • Creating Arrays
      • Assigning Values to Arrays
      • Using Array Elements
      • Multi-Dimensional Arrays
      • Common Errors
    • Conditional Statements (If/Else)
    • Operators
      • Relational Operators
      • Mathematical Operators
      • Logical Operators
    • Loops
      • While Loops
      • For Loops
      • Foreach Loops
    • Functions & Methods
      • Creating a Function
      • Calling or Invoking a Function
      • Parameters & Arguments
    • Interaction
      • Mouse Interaction
    • Objects, Classes & Libraries
      • Accessing Objects
    • Node-Based Programming
    • Packaging and Sharing
  • TouchDesigner Info
    • Overview
    • Popular TOPs
    • Popular CHOPs
    • Popular SOPs
    • Popular DATs
  • Arduino Info
    • Arduinos!
    • The Parts
    • The Setup
      • Using the Serial Connection
      • Output Component Setup Examples
      • Input Component Setup Examples
      • Create a Night Light
Powered by GitBook
On this page
  • Basics
  • Null CHOP
  • Constant CHOP
  • Noise CHOP
  • Switch CHOP
  • Select CHOP
  • Math
  • Math CHOP
  • Using Math CHOP to adjust range/map values
  • Logic
  • Logic CHOP
  • Count CHOP
  • Timers
  • Timer CHOP
  • Audio
  • Audio Device In CHOP
  • Audio Device Out CHOP
  • Audio File In CHOP
  • Audio File Out CHOP

Was this helpful?

  1. TouchDesigner Info

Popular CHOPs

PreviousPopular TOPsNextPopular SOPs

Last updated 4 years ago

Was this helpful?

Channel operators (CHOPs) are colored green and manipulate number data, booleans (on/off or true/false), and audio.

Basics

Null CHOP

Provides a snapshot of sorts of a point within your network. Commonly used to help look at the effects of major changes later and remove them easily when necessary.

Constant CHOP

Provides a number, usually typed in. You can have multiple channels/numbers. The slider makes values 0-1 easy to get, but you can type in larger numbers and negative numbers.

Noise CHOP

For when you want some randomness.

To see it moving in real-time, use the Common > Time Slice parameter

Switch CHOP

Takes in multiple channel operators (CHOPS) and creates an array. A single element of the array can be accessed by the Switch CHOP's Index parameter.

Select CHOP

Provides a "copy" that displays selected channels from the original channel operator.

Click and drag the original CHOP onto the Select CHOP or type the original CHOP's name into the Select CHOP's CHOP parameter.

Click the dropdown arrow to the right of the Channels parameter to select (one-by-one) one or more channels.

When wanting all possible channels, use an asterisk * ... This can be also used to get all possible channels that start with a certain letter or phrase.

Math

Math CHOP

Does math including absolute powers, turning numbers, negative, etc.

Example of adding two CHOPs:

Example of subtracting two channels from the same CHOP:

Example of making a number negative:

Example of rounding up to the next integer:

Example of getting a square root of a number:

Using Math CHOP to adjust range/map values

The top way you'll use a Math CHOP is to adjust the range of values. Many operators expect a value from 0 to 1, so finding what the upper and lower bounds of a number are allows the Math CHOP to adjust it to fit.

Example of having the 0-255 RGB values, but need a 0-1 RGB value for a Constant TOP:

Logic

Logic CHOP

Will turn on/fire true under certain circumstances - kinda like an if statement or while loop.

Example of the Logic CHOP being true when the input is 2:

Count CHOP

Counts the times the input is true or on.

Example of counting the times the timer is "done":

This GIF is at 30 fps and doesn't show each time it's done, but you can see it in the program.

Timers

Timer CHOP

Provides a timer and whether it is "ready" or "done."

Audio

Audio Device In CHOP

Brings in audio from microphones.

Audio Device Out CHOP

Plays audio through your speakers and headphones.

Audio File In CHOP

Gets audio from an audio OR video file.

Audio File Out CHOP

Exports an audio file.

Line graph version
Example of getting only channels starting with "blob0"