The Record CHOP takes the channels coming in the first (Position) input, converts and records them internally, and outputs the stored channels as the CHOP output. The optional second (Active) input is used to enable and disable the recording.
During recording, the Record CHOP uses only the values of the first input at the current frame. The Type determines how the input values are converted.
Tip: The Trail CHOP also records the last window of samples, and more powerfully, the gestureCapture component in the Palette gives more control over multi-captures and smoothing channel data.
If Record is set to Auto Range, and the Active input goes on, and TouchDesigner is playing, then any existing storage array is cleared, and the channels are recorded in a new storage array until Active goes off. This behaves like a sampler.
The Mouse In CHOP and Keyboard In CHOP are often attached to the Position and Active inputs respectively of the Record CHOP to perform the recording of channels from mouse movements, enabled by pressing a keyboard key (see the Keyboard In CHOP).
Record Segment is useful for recording trails, snakes, and other models that use a time-history of motion.
See the Time Slice CHOP for input smoothing.
Parameters - Control Page
Record - When and how much to record:
- Off - Leaves the output unmodified.
- On - Always records when playing forward. When the active input is in the off state the input is maintained at its current values.
- Add - Adds (offsets) to an existing set of channels previously recorded in the Record CHOP. The channels are left unmodified while the Active input is in the off state.
- Auto Range - Creates an interval based on Active on/off.
Record Input - Determines whether record should sample the time slice or the current frame. You would generally want to use Current Time Slice, for audio, as all frames will be evaluated.
If the interval is set to be the Current Frame, it will always cook (only look at) the current frame (things downstream still cook regardless of this setting however). Thus, it should generally not be used for audio, but rather fro things like device input, because it interpolates the values between the captured frames.
Interpolation - Determines how to compute missed input samples using interpolation. Using Hold Previous Value does just that; Linear and Cubic interpolation will create a mathematical blend of values in a linear (straight line between values in time), or cubic (smooth round-off curve between beginning and ending values).
Record Output - Determines the frame range that gets output from the CHOP.
- Full Range - The frame range grows from the moment and frame you start recording. Samples get recorded over when TouchDesigner goes over a frame a second time. Press Reset Channels to start again.
- Current Frame - Outputs the current frame only.
- Current Frame at Frame 1 - Outputs the current frame but shifts it to frame 1. If the channels are not changing value, it reduces the amount of cooking that takes place.
- Current Time Slice - Outputs the current Time Slice of samples only.
- Segment - Outputs a sliding window of samples defined by the Record Segment start/end length.
Record Segment - The data gets recorded in a fixed-range interval and the most recent data gets recorded at the end of the interval and the remaining samples get shifted toward the start of the interval. This is useful for making snakes.
Reset Channels - The current output is cleared and all subsequent channels will commence single sample lengths.
Standard Options and Local Variables