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 Sets the transformation mode.

Linear The scale is linear. The scale is logarithmic.

## Outputs

Control The transformed Control line.

Audio and Control lines (visualized with blue and orange, 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 (orange), 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, 0 as the destination min value, 22050 as the destination max value.

This essentially says: make the output 0 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 (with these settings, 0.5 will be transformed to 11025).

### 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.

This says: make the output 0 when the input is -1, make the output 1 when the input is 1, and interpolate between these values if input is between 0 and 1 (with these settings, 0 would be transformed to 0.5).