|
Gin
|
Smooths a value using an easing function for natural-feeling transitions. More...
#include <gin_easedvaluesmoother.h>
Public Member Functions | |
| void | setSampleRate (double sr) |
| void | setTime (double t) |
| bool | isSmoothing () |
| void | reset () |
| T | getCurrentValue () |
| T * | getValuePtr () |
| void | snapToValue () |
| void | process (int n) |
| void | setValue (T v) |
| void | updateValue () |
| T | getNextValue () |
| void | setValueUnsmoothed (T v) |
Smooths a value using an easing function for natural-feeling transitions.
EasedValueSmoother provides smooth parameter transitions using easing curves instead of linear interpolation. This creates more natural, aesthetically pleasing animations and parameter changes.
The easing function is specified as a template parameter, allowing for compile-time selection of the curve shape. Any of the easing function objects defined in this file can be used.
| T | The numeric type for values (typically float or double) |
| EasingFunction | Function object providing the easing curve (defaults to QuadraticInOutEasing) |
Example:
| void EasedValueSmoother< T, EasingFunction >::setSampleRate | ( | double | sr | ) |
References EasedValueSmoother< T, EasingFunction >::reset().
| void EasedValueSmoother< T, EasingFunction >::setTime | ( | double | t | ) |
References EasedValueSmoother< T, EasingFunction >::reset().
| bool EasedValueSmoother< T, EasingFunction >::isSmoothing | ( | ) |
| void EasedValueSmoother< T, EasingFunction >::reset | ( | ) |
| T EasedValueSmoother< T, EasingFunction >::getCurrentValue | ( | ) |
| T * EasedValueSmoother< T, EasingFunction >::getValuePtr | ( | ) |
| void EasedValueSmoother< T, EasingFunction >::snapToValue | ( | ) |
| void EasedValueSmoother< T, EasingFunction >::process | ( | int | n | ) |
| void EasedValueSmoother< T, EasingFunction >::setValue | ( | T | v | ) |
| void EasedValueSmoother< T, EasingFunction >::updateValue | ( | ) |
| T EasedValueSmoother< T, EasingFunction >::getNextValue | ( | ) |
| void EasedValueSmoother< T, EasingFunction >::setValueUnsmoothed | ( | T | v | ) |