Krotos Modules 3
Loading...
Searching...
No Matches
krotos::SmoothedFloat Class Reference

#include <SmoothedFloat.h>

Public Member Functions

float getSmoothedValue ()
 increments the value by the required increment and gets smootedValue
 
float getTarget () const
 gets the target value
 
void setTarget (int blockSize, float newTarget)
 sets the target with a block size
 

Private Attributes

float m_target {0.0f}
 
float m_current {0.0f}
 
float m_increment {0.0f}
 

Member Function Documentation

◆ getSmoothedValue()

float krotos::SmoothedFloat::getSmoothedValue ( )
inline

increments the value by the required increment and gets smootedValue

Returns
the current value

◆ getTarget()

float krotos::SmoothedFloat::getTarget ( ) const

gets the target value

Returns

◆ setTarget()

void krotos::SmoothedFloat::setTarget ( int blockSize,
float newTarget )

sets the target with a block size

Parameters
blockSizethe number of samples to smooth through
newTargetthe target we want to reach

Member Data Documentation

◆ m_current

float krotos::SmoothedFloat::m_current {0.0f}
private

◆ m_increment

float krotos::SmoothedFloat::m_increment {0.0f}
private

◆ m_target

float krotos::SmoothedFloat::m_target {0.0f}
private

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