Codebox Operators smoothstep

smoothstep

Smoothed fade of inputs

smoothstep(x, y, a): out1

Arguments:

Arguments

NameTypeDefaultDescription
xnumber

The value of the left edge is the starting point of the fade. The transition begins when a = x, i.e. when the signal input equals the left edge value.

ynumber

The value of the right edge is the end point of the fade transition. The output reaches 1 when a = y, or when the right edge (y) equals the signal input (a).

anumber

The input to be smoothed. When x < y, the output fades from 0 to 1 as a moves from x to y. When x > y, the fade is inverted — the output fades from 1 to 0 as a moves from y to x.

Returns

NameTypeDescription
out1number