|
WE Core
|
#include <ParameterDefinition.h>
Public Member Functions | |
| T | NormalisedToInternal (T val) const |
| T | InternalToNormalised (T val) const |
Public Member Functions inherited from ParameterDefinition::BaseParameter< T > | |
| BaseParameter ()=delete | |
| virtual | ~BaseParameter ()=default |
| BaseParameter (T newMinValue, T newMaxValue, T newDefaultValue) | |
| T | BoundsCheck (T val) const |
Additional Inherited Members | |
Public Attributes inherited from ParameterDefinition::BaseParameter< T > | |
| const T | minValue |
| const T | maxValue |
| const T | defaultValue |
Provides storage for minimum, maximum and default values for a parameter which can contain a continuous value (such as a slider), as well as methods to convert between the normalised and internal ranges, and clip a value to the appropriate range.
Definition at line 101 of file ParameterDefinition.h.
|
inline |
Translates parameter values from the range used internally for that parameter, to the normalised range (0 to 1) as required by VSTs.
| val | Value of the parameter in the internal range |
Definition at line 127 of file ParameterDefinition.h.
References ParameterDefinition::BaseParameter< T >::maxValue, and ParameterDefinition::BaseParameter< T >::minValue.
|
inline |
Translates parameter values from the normalised (0 to 1) range as required by VSTs to the range used internally for that parameter
| val | Normalised value of the parameter |
Definition at line 115 of file ParameterDefinition.h.
References ParameterDefinition::BaseParameter< T >::maxValue, and ParameterDefinition::BaseParameter< T >::minValue.