The Power Node is a simple Node, that raises a base value to a power.
Inputs
Base Input (X)
The number to raise to Exponent Input.
Exponent Input (Y)
The exponent to raise Base Input to.
If either nothing, or a constant 0 signal is connected to this input, the output will always be 1. This is because the result of raising anything to 0 is 1.
Outputs
Result Output
The result of the operation, i.e. base (X) raised to exponent (Y).
This is done individually per sample, and independently for each channel. The channel count of this output is based on the Base Input and Exponent Input. If they have a different channel count, the one with the lower channel count is automatically upmixed to the other. For example, if Base Input is stereo, and Exponent Input is mono, the output is stereo.
Because a power of 0 is always 1, regardless of base, this outputs a constant 1 signal if the Exponent Input has a constant 0 signal connected (or nothing connected at all). If the input is invalid (e.g. when trying to raise a negative number to a non-integer exponent), the output falls back to 0 and a warning highlight is shown around the Power Node.
Similar Nodes
- The Multiply Node can also be used to get the square of a value, by connecting the same signal to both inputs.