Nodes

  1. Home
  2. Docs
  3. Nodes
  4. Control Lines
  5. Constant Range Transform Node

Constant Range Transform Node

Transforms a given range of values (Control or Audio) to another range, specified by min/max values.

Inputs

Control A Control line to transform.

Settings

Source min Sets the expected lower bound of the input range.
Source max Sets the expected upper bound of the input range.
Dest. min Sets the lower bound of the output range (e.g. the value to output when input equals Source Min).
Dest. max Sets the upper bound of the output range (e.g. the value to output when input equals Source Max).
Transform mode Defines intervals’s scaling.

Linear The scale is linear.
Logaritmic The scale is logaritmic.

Outputs

Control The transformed Control line.

Audio and Control lines (visualized with blue and purple, respectively) are both analogous to an analog signal.
They can be used interchangeably, and, for example, an Audio output (blue) can be connected to a Control input (purple), or vice-versa.

Examples

Driving a Frequency setting with an Envelope Pattern Node

Say you have an Envelope Pattern Node with [0, 1] output range (default), and want to drive the Frequency-control input of a Lowpass Filter Node (which accepts values in the [0, 22050] range). To do this, use 0 as the source min value, 1 as the source max value, 10 as the destination min value, 22050 as the destination max value, and set the Transform mode setting to Logarithmic.

This essentially says: make the output 10 when the input is 0, make the output 22050 when the input is 1, and interpolate between these values if the input is between 0 and 1, in a logarithmic fashion.

Driving a Gain setting with an LFO Node

Say you have an LFO Node, with [-1, 1] output range (default), and want to drive the Gain-control input of a Gain Node (which accepts values in the [0, 1+] range). To do this, use -1 as the source min value, 1 as the source max value, 0 as the destination min value, and 1 as the destination max value. Leave the Transform Mode setting at Linear.

This says: make the output 0 when the input is -1, make the output 1 when the input is 1, and linearly interpolate between these values if input is between 0 and 1.

Was this article helpful to you? Yes No