Constant
A fixed control vector of up to eight lanes, set in the inspector. The number box of the control domain.
- Control
- Since 0.2.0
- constant
- number
- control
- value
Constant outputs a fixed control vector of up to eight lanes. It is the number box of the control domain.
What it does#
Each lane has its own value from 0 to 1, set in the inspector or from a Frame control. Lane 1 takes Value 1, lane 2 takes Value 2 and so on, up to eight. A lane only exists when the node has at least that many lanes, so values beyond the node's lane count do nothing. The output never changes unless a control is moved.
When to use it#
Use it as a fixed operand for Math, as a base value to scale, or as a source that you can drive from a Frame control and cable into the control graph.
Ports#
| Port | Direction | Signal | Lanes |
|---|---|---|---|
control | Output | Control | Inferred from the cable |
Parameters#
| Parameter | Label | Range | Default | Unit | Scale | Notes |
|---|---|---|---|---|---|---|
value1 | Value 1 | 0 to 1 | 0 | linear | Lane 1 of the output when the node has at least 1 lanes. | |
value2 | Value 2 | 0 to 1 | 0 | linear | Lane 2 of the output when the node has at least 2 lanes. | |
value3 | Value 3 | 0 to 1 | 0 | linear | Lane 3 of the output when the node has at least 3 lanes. | |
value4 | Value 4 | 0 to 1 | 0 | linear | Lane 4 of the output when the node has at least 4 lanes. | |
value5 | Value 5 | 0 to 1 | 0 | linear | Lane 5 of the output when the node has at least 5 lanes. | |
value6 | Value 6 | 0 to 1 | 0 | linear | Lane 6 of the output when the node has at least 6 lanes. | |
value7 | Value 7 | 0 to 1 | 0 | linear | Lane 7 of the output when the node has at least 7 lanes. | |
value8 | Value 8 | 0 to 1 | 0 | linear | Lane 8 of the output when the node has at least 8 lanes. |
Values (value1 to value8)#
Lane 1 to lane 8 of the output: value1, value2, value3, value4, value5, value6, value7 and value8. Each runs from 0 to 1 and defaults to 0. Only the lanes the node actually has are output.
Tips#
- Use several Constants, or one with more lanes, to hold a set of related values, then pull lanes apart with Select lanes.
- For values outside 0 to 1, follow the Constant with Scale.
See also#
Scale, Math, Combine lanes, Cables.
Help patches
Each help patch is an ordinary Toy that teaches one idea. The diagram shows the Patch; the preview shows its Frame. Open it in TuneToys to play and edit it.
1. Set a fixed control value
beginner Teaches: value1, value2, value3
A constant control vector with three lanes set by knobs.
Connections as text
- Oscillator audio output connected to Patch outputs audio input
- Constant is a number box: each lane holds a fixed value from 0 to 1.
- This node has three lanes, so only Value 1 to Value 3 are output.
Related nodes
- Scale Map a control range onto another with a curve, clamp and inversion. Depth and offset for any modulation.
- Math Arithmetic on any signal, lane by lane: add, multiply, divide, power and more on audio or control operands. The output runs at the rate of its fastest input.
- Combine lanes Concatenate two control bundles, preserving every lane without mixing.