Docs CHOPs & sensing
ChopProcess
Shapes channels in one node: limit, remap between ranges with an exponent curve, zero at the bottom, lag, and an optional speed mode that turns the result into a running total. An alternative for the Math CHOP.
∿ CHOPs & sensing ◆ Patreon · Base OP Create menu entry
Why use it
A controller value is rarely ready to use as it arrives. A MIDI fader sends 0 to 1 when you need 0 to 360 degrees, its response feels wrong at one end, and its steps show up as jumps on screen. So after almost every controller you build the same chain: a Limit CHOP, a Math CHOP to remap, a Lookup or a Function CHOP for the curve, a Lag or Filter CHOP to smooth it.
ChopProcess is that chain in one node. Every channel of the input goes through it, so one node shapes a whole fader bank.
Features
- Limit and remap with a curveLimits incoming values to a range and remaps that range onto another through an exponent curve.
- Zero BelowMakes the bottom of the input range output 0, so a fader switches fully off at its lowest point yet starts usefully once moved.
- Lag smoothingGlides toward new values with a lag.
- Speed modeTreats the result as a speed and outputs its running total, which can be clamped, looped or bounced between limits.
- Shape a whole fader bank in one nodeEvery input channel goes through the same chain, so one node shapes a whole fader bank; with nothing connected, the Value parameter is processed.
- Replace a Math CHOPCreate a Math CHOP with the alternatives shortcut held and ChopProcess is offered in its place, wired into the same spot.
How to use it
- Create it from the FNS tab of the OP Create dialog. Or create a Math CHOP with the alternatives shortcut held, pick ChopProcess, and it lands in that spot with the wiring kept.
- Wire your controller into it: a MIDI In CHOP, an OSC In CHOP, a Select CHOP holding the faders you want.
- Set From Range to what the controller sends and To Range to what you need, for example 0 to 1 onto 0 to 360 for a rotation.
- To keep values inside the range, set Type to clamp. Loop wraps them round and zigzag bounces them back.
- Shape the response with Exponent Value. Above 1 the curve eases in, so the bottom of the fader gets the fine control; below 1 it eases out.
- Smooth it with Lag, in seconds.
A few more things people reach for:
- A fader that switches something fully off. With Type on clamp, switch on Zero Below and the bottom of the input range outputs 0, even when the output range starts higher. The fader still starts from a useful value as soon as it moves: handy for a layer's opacity, off at the bottom and visible from the first nudge.
- Your own channel names. Name renames the output channels, one name
per channel or a pattern like
chan[1-4]. - No input at all. With nothing wired in, ChopProcess processes its own Value, so it can shape a single value you type or reference there.
Turning a fader into a speed
Switch on Is Speed and the processed value is treated as a speed: the output is its running total, so a fader held above zero keeps the value moving, and bringing the fader back to zero leaves the value where it got to.
- Map the fader onto -1 to 1 with To Range, and the centre holds the value still while either side runs it down or up.
- Limit Type decides what happens at Minimum and Maximum: clamp stops there, loop wraps around, zigzag bounces back. Loop between 0 and 1 gives a phase that keeps cycling at the fader's speed.
- Reset Pulse sends the total back to Reset Value once; Reset holds it there while on.
Input and output
- in1 (CHOP): the channels to process. With nothing connected, the Value parameter is processed instead.
- out1 (CHOP): the processed channels.
Get it
This tool unlocks with Patreon. It installs through the same picker as everything else and unlocks with the Patreon Base tier or higher, connected from inside TouchDesigner. Everything else in the toolkit stays free and MIT, and the membership is what keeps that work moving.
Where it appears
- OP Create menu entryposition 0
Parameters
Custom
| Control | Type / default | What it does |
|---|---|---|
ValueValue |
number0 | The value to process when nothing is wired into the input. |
NameName |
textempty | Rename the output channels: names separated by spaces, one per channel, or a pattern like chan[1-4]. Empty keeps the input's names. |
TypeType |
menuOff | What happens outside the From Range: off lets values through, clamp holds them at the ends, loop wraps them round, zigzag bounces them back. |
From RangeFromrange |
number-1 | The input range. With Type set to clamp, loop or zigzag this is also the limit. |
To RangeTorange |
number0 | The output range the From Range maps onto. |
Zero BelowZerobelow |
on / offoff | Output 0 while the input sits at the bottom of the From Range, instead of the bottom of the To Range. Only with Type set to clamp. |
Exponent ValueExpval |
number2 | Exponent for the curve between the ranges: 1 is linear, above 1 eases in, below 1 eases out. |
LagLag |
number0.2 | Seconds to glide up and down toward a new value. |
| Speed | ||
Is SpeedIsspeed |
on / offoff | Treat the processed value as a speed and output its running total instead, so a held input keeps moving. |
Limit TypeLimittype |
menuOff | What happens when the running total leaves Minimum and Maximum. |
MinimumMin |
number0 | Lower limit for the running total. |
MaximumMax |
number1 | Upper limit for the running total. |
Reset ValueResetvalue |
number0 | The value the running total returns to on reset. |
ResetReset |
on / offoff | Hold the running total at the Reset Value while on. |
Reset PulseResetpulse |
button | Return the running total to the Reset Value once. |