smoothstep~
Examples
Arguments
y [auto]
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 [auto]
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 [auto]
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 [auto]
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 [auto]
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 [signal]
out1Dynamic Attributes
These attributes can be modified in the code during execution using the set object
a [auto]
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 [auto]
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 [auto]
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 |