Gin
Public Member Functions | List of all members
ValueSmoother< T > Class Template Reference

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 ()
 
getCurrentValue ()
 
T * getValuePtr ()
 
void setValue (T v)
 
void snapToValue ()
 
void process (int n)
 
void updateValue ()
 
getNextValue ()
 
void setValueUnsmoothed (T v)
 

Detailed Description

template<class T>
class ValueSmoother< T >

Linearly smooths a value in a 0 to 1 range at a constant rate.

Time is for from duration from min to max.

Member Function Documentation

◆ setSampleRate()

template<class T >
void ValueSmoother< T >::setSampleRate ( double  sr)

◆ setTime()

template<class T >
void ValueSmoother< T >::setTime ( double  t)

◆ isSmoothing()

template<class T >
bool ValueSmoother< T >::isSmoothing ( )

◆ reset()

template<class T >
void ValueSmoother< T >::reset ( )

◆ getCurrentValue()

template<class T >
T ValueSmoother< T >::getCurrentValue ( )

◆ getValuePtr()

template<class T >
T* ValueSmoother< T >::getValuePtr ( )

◆ setValue()

template<class T >
void ValueSmoother< T >::setValue ( v)

◆ snapToValue()

template<class T >
void ValueSmoother< T >::snapToValue ( )

◆ process()

template<class T >
void ValueSmoother< T >::process ( int  n)

◆ updateValue()

template<class T >
void ValueSmoother< T >::updateValue ( )

References math::max(), and math::min().

Referenced by ValueSmoother< T >::process().

◆ getNextValue()

template<class T >
T ValueSmoother< T >::getNextValue ( )

References math::max(), and math::min().

◆ setValueUnsmoothed()

template<class T >
void ValueSmoother< T >::setValueUnsmoothed ( v)

The documentation for this class was generated from the following file: