smoothstep
Examples
Arguments
y [number]
The value of the left edge is the end value of the fade transition. The transition of the left edge ends when a = y, or when the left edge (y) is equal to the value of the signal input (a).
a [number]
The phase input to be smoothed. When the value of the left the (x) is less that (y), a fade transition will start with the left edge value being 1 and fall to the right edge value of . When the value of the left edge the (x) is greater that the right edge (y), a fade transition will start with the right edge value being 0 and rise to the right edge value of 1.
Inlets
x [number]
The value of the left edge is the starting value of the fade. The fade transition of the left edge begins when a = x, or when the left edge (x) is equal to the value of the signal input (a).
y [number]
The value of the left edge is the end value of the fade transition. The transition of the left edge ends when a = y, or when the left edge (y) is equal to the value of the signal input (a).
a [number]
The phase input to be smoothed. When the value of the left the (x) is less that (y), a fade transition will start with the left edge value being 1 and fall to the right edge value of . When the value of the left edge the (x) is greater that the right edge (y), a fade transition will start with the right edge value being 0 and rise to the right edge value of 1.
Outlets
out1 [number]
out1Fixed Attributes
These attributes must be set in the object box and determine the behavior of the object at runtime.
hot [bool] (default: false)
Trigger computation on all inlets.
Dynamic Attributes
These attributes can be modified in the code during execution using the set object
a [number]
The phase input to be smoothed. When the value of the left the (x) is less that (y), a fade transition will start with the left edge value being 1 and fall to the right edge value of . When the value of the left edge the (x) is greater that the right edge (y), a fade transition will start with the right edge value being 0 and rise to the right edge value of 1.
reset [bang] (default: 0)
Banging this attribute will reset the object to its default state.
x [number]
The value of the left edge is the starting value of the fade. The fade transition of the left edge begins when a = x, or when the left edge (x) is equal to the value of the signal input (a).
y [number]
The value of the left edge is the end value of the fade transition. The transition of the left edge ends when a = y, or when the left edge (y) is equal to the value of the signal input (a).
See Also
Name | Description |
---|---|
smoothstep~ | Smoothed fade of inputs |
linearinterp | Linear interpolation |
slide | The discrete derivative of the input |