Gin
Public Member Functions | Protected Attributes | List of all members
SmoothedParameter< T > Class Template Reference

A silky smooth parameter. More...

Inherits gin::Parameter.

Public Member Functions

 SmoothedParameter (Processor &p, juce::String uid_, juce::String name_, juce::String shortName_, juce::String label_, float minValue_, float maxValue_, float intervalValue_, float defaultValue_, float skewFactor_=1.0f, std::function< juce::String(const gin::Parameter &, float)> textFunction_=nullptr)
 
 SmoothedParameter (Processor &p, juce::String uid_, juce::String name_, juce::String shortName_, juce::String label_, juce::NormalisableRange< float > range_, float defaultValue_, std::function< juce::String(const gin::Parameter &, float)> textFunction_=nullptr)
 
void prepareToPlay (double sampleRate, int) override
 
void reset () override
 
void setUserValue (float v) override
 
void setUserValueNotifingHost (float v) override
 
void setValue (float valueIn) override
 
float getProcValue (int stepSize) override
 
void setSmoothingTime (float t)
 
bool isSmoothingActive () override
 

Protected Attributes

smoother
 

Detailed Description

template<class T>
class SmoothedParameter< T >

A silky smooth parameter.

Use getProcValue(int) to get the next smoothed value of the parameter.

Constructor & Destructor Documentation

◆ SmoothedParameter() [1/2]

template<class T >
SmoothedParameter< T >::SmoothedParameter ( Processor p,
juce::String  uid_,
juce::String  name_,
juce::String  shortName_,
juce::String  label_,
float  minValue_,
float  maxValue_,
float  intervalValue_,
float  defaultValue_,
float  skewFactor_ = 1.0f,
std::function< juce::String(const gin::Parameter &, float)>  textFunction_ = nullptr 
)

◆ SmoothedParameter() [2/2]

template<class T >
SmoothedParameter< T >::SmoothedParameter ( Processor p,
juce::String  uid_,
juce::String  name_,
juce::String  shortName_,
juce::String  label_,
juce::NormalisableRange< float >  range_,
float  defaultValue_,
std::function< juce::String(const gin::Parameter &, float)>  textFunction_ = nullptr 
)

Member Function Documentation

◆ prepareToPlay()

template<class T >
void SmoothedParameter< T >::prepareToPlay ( double  sampleRate,
int   
)
override

◆ reset()

template<class T >
void SmoothedParameter< T >::reset ( )
override

◆ setUserValue()

template<class T >
void SmoothedParameter< T >::setUserValue ( float  v)
override

◆ setUserValueNotifingHost()

template<class T >
void SmoothedParameter< T >::setUserValueNotifingHost ( float  v)
override

◆ setValue()

template<class T >
void SmoothedParameter< T >::setValue ( float  valueIn)
override

◆ getProcValue()

template<class T >
float SmoothedParameter< T >::getProcValue ( int  stepSize)
override

◆ setSmoothingTime()

template<class T >
void SmoothedParameter< T >::setSmoothingTime ( float  t)

◆ isSmoothingActive()

template<class T >
bool SmoothedParameter< T >::isSmoothingActive ( )
override

Member Data Documentation

◆ smoother

template<class T >
T SmoothedParameter< T >::smoother
protected

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