RNBO Objects & Operators twist~
Open Help

twist~

Make Linear Ramps Curved

Description

The twist~ operator accepts a ramp between 0 and 1 (such as one generated by phasor~ ) and uses a lookup table to output a function using the same algorithm as the curve~ object. The curvature of the ramp is controlled by the curve inlet that ranges from -1 to 1. A curve value of 0 produces an output ramp identical to the input.

Arguments

curve [auto]

Optional

Sets the parameters of the exponential function that generates the non-linear output. It can range between -1 and 1. For ascending ramps, values of curve less than 1 produce values above the linear input and values of curve greater than 1 produce values below the linear input. As curve values near -1 or 1, the curavture becomes more extreme.

Inlets

signal [auto]

signal

curve [auto]

Sets the parameters of the exponential function that generates the non-linear output. It can range between -1 and 1. For ascending ramps, values of curve less than 1 produce values above the linear input and values of curve greater than 1 produce values below the linear input. As curve values near -1 or 1, the curavture becomes more extreme.

Outlets

out1 [signal]

Curved output

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

curve [auto]

Sets the parameters of the exponential function that generates the non-linear output. It can range between -1 and 1. For ascending ramps, values of curve less than 1 produce values above the linear input and values of curve greater than 1 produce values below the linear input. As curve values near -1 or 1, the curavture becomes more extreme.

reset [bang] (default: 0)

Banging this attribute will reset the object to its default state.

shapemode [bool] (default: true)

When enabled, causes descending ramps to be symmetrical with ascending ramps. Enabled by default.

signal [auto]

signal

syncupdate [bool] (default: false)

When enabled, defers changes to the curve< attribute until either an input ramp starts or changes direction (resets). This avoids discontinuities in the ramp output.

See Also

Name Description
curve~ Exponential ramp generator
line~ Linear ramp generator