Gin
|
Linearly smooths a value in a 0 to 1 range at a constant rate. More...
Public Member Functions | |
void | setSampleRate (double sr) |
void | setTime (double t) |
bool | isSmoothing () |
void | reset () |
T | getCurrentValue () |
T * | getValuePtr () |
void | setValue (T v) |
void | snapToValue () |
void | process (int n) |
void | updateValue () |
T | getNextValue () |
void | setValueUnsmoothed (T v) |
Linearly smooths a value in a 0 to 1 range at a constant rate.
Time is for from duration from min to max.
void ValueSmoother< T >::setSampleRate | ( | double | sr | ) |
References ValueSmoother< T >::reset().
void ValueSmoother< T >::setTime | ( | double | t | ) |
References ValueSmoother< T >::reset().
bool ValueSmoother< T >::isSmoothing | ( | ) |
void ValueSmoother< T >::reset | ( | ) |
Referenced by ValueSmoother< T >::setSampleRate(), and ValueSmoother< T >::setTime().
T ValueSmoother< T >::getCurrentValue | ( | ) |
T* ValueSmoother< T >::getValuePtr | ( | ) |
void ValueSmoother< T >::setValue | ( | T | v | ) |
void ValueSmoother< T >::snapToValue | ( | ) |
void ValueSmoother< T >::process | ( | int | n | ) |
References ValueSmoother< T >::updateValue().
void ValueSmoother< T >::updateValue | ( | ) |
References math::max(), and math::min().
Referenced by ValueSmoother< T >::process().
T ValueSmoother< T >::getNextValue | ( | ) |
References math::max(), and math::min().
void ValueSmoother< T >::setValueUnsmoothed | ( | T | v | ) |