Smooth values logarithmically. More...
#include <ame_Util.hpp>
Public Member Functions | |
| Slide (FloatType slownessOfIncrease, FloatType slownessOfDecrease) noexcept | |
| Create an Slide object. More... | |
| void | setSlownessOfIncrease (FloatType slownessIncrease) |
| Set the slowness of the increase. More... | |
| void | setSlownessOfDecrease (FloatType slownessDecrease) |
| Set the slowness of the decrease. More... | |
| FloatType | process (FloatType input) noexcept |
| Filter an input value More... | |
Smooth values logarithmically.
y (n) = y (n-1) + ((x (n) - y (n-1))/slide)
|
inlinenoexcept |
Create an Slide object.
| slownessOfIncrease | The larger the value, the more slowly the increase. If 1, no effect is applied to the increase. |
| slownessOfDecrease | The larger the value, the more slowly the decrease. If 1, no effect is applied to the decrease. |
|
inlinenoexcept |
Filter an input value
| input | Value to smooth |
|
inline |
Set the slowness of the decrease.
| slownessDecrease | The larger the value, the more slowly the decrease. If 1, no effect is applied to the decrease. |
|
inline |
Set the slowness of the increase.
| slownessIncrease | The larger the value, the more slowly the increase. If 1, no effect is applied to the increase. |