![]() |
AAX SDK
2.4.1
Avid Audio Extensions Development Kit
|
#include <AAX_ITaperDelegate.h>
Classes for conversion to and from normalized parameter values.
Taper delegate interface template
Taper delegates are used to convert real parameter values to and from their normalized representations. All taper delegates implement the AAX_ITaperDelegate<T> interface template, which contains two conversion functions:
In addition, tapers may incorporate logical value constraints via the following interface methods:
For more information, see the AAX_ITaperDelegate class documentation.
Public Member Functions | |
virtual AAX_ITaperDelegate * | Clone () const =0 |
Constructs and returns a copy of the taper delegate. More... | |
virtual T | GetMaximumValue () const =0 |
Returns the taper's maximum real value. More... | |
virtual T | GetMinimumValue () const =0 |
Returns the taper's minimum real value. More... | |
virtual T | ConstrainRealValue (T value) const =0 |
Applies a contraint to the value and returns the constrained value. More... | |
virtual T | NormalizedToReal (double normalizedValue) const =0 |
Converts a normalized value to a real value. More... | |
virtual double | RealToNormalized (T realValue) const =0 |
Normalizes a real parameter value. More... | |
![]() | |
virtual | ~AAX_ITaperDelegateBase () |
Virtual destructor. More... | |
|
pure virtual |
Constructs and returns a copy of the taper delegate.
In general, this method's implementation can use a simple copy constructor:
Implemented in AAX_CStateTaperDelegate< T >, AAX_CRangeTaperDelegate< T, RealPrecision >, AAX_CPieceWiseLinearTaperDelegate< T, RealPrecision >, AAX_CLogTaperDelegate< T, RealPrecision >, AAX_CLinearTaperDelegate< T, RealPrecision >, and AAX_CBinaryTaperDelegate< T >.
Referenced by AAX_CParameter< T >::SetTaperDelegate().
|
pure virtual |
Returns the taper's maximum real value.
Implemented in AAX_CStateTaperDelegate< T >, AAX_CRangeTaperDelegate< T, RealPrecision >, AAX_CPieceWiseLinearTaperDelegate< T, RealPrecision >, AAX_CLogTaperDelegate< T, RealPrecision >, AAX_CLinearTaperDelegate< T, RealPrecision >, and AAX_CBinaryTaperDelegate< T >.
|
pure virtual |
Returns the taper's minimum real value.
Implemented in AAX_CStateTaperDelegate< T >, AAX_CRangeTaperDelegate< T, RealPrecision >, AAX_CPieceWiseLinearTaperDelegate< T, RealPrecision >, AAX_CLogTaperDelegate< T, RealPrecision >, AAX_CLinearTaperDelegate< T, RealPrecision >, and AAX_CBinaryTaperDelegate< T >.
|
pure virtual |
Applies a contraint to the value and returns the constrained value.
This method is useful if the taper requires a contraint beyond simple minimum and maximum real value limits.
[in] | value | The unconstrained value |
Implemented in AAX_CStateTaperDelegate< T >, AAX_CRangeTaperDelegate< T, RealPrecision >, AAX_CPieceWiseLinearTaperDelegate< T, RealPrecision >, AAX_CLogTaperDelegate< T, RealPrecision >, AAX_CLinearTaperDelegate< T, RealPrecision >, and AAX_CBinaryTaperDelegate< T >.
|
pure virtual |
Converts a normalized value to a real value.
This is where the actual taper algorithm is implemented.
This function should perform the exact inverse of RealToNormalized(), to within the roundoff precision of the individual taper implementation.
[in] | normalizedValue | The normalized value that will be converted |
Implemented in AAX_CStateTaperDelegate< T >, AAX_CRangeTaperDelegate< T, RealPrecision >, AAX_CPieceWiseLinearTaperDelegate< T, RealPrecision >, AAX_CLogTaperDelegate< T, RealPrecision >, AAX_CLinearTaperDelegate< T, RealPrecision >, and AAX_CBinaryTaperDelegate< T >.
|
pure virtual |
Normalizes a real parameter value.
This is where the actual taper algorithm is implemented.
This function should perform the exact inverse of NormalizedToReal(), to within the roundoff precision of the individual taper implementation.
[in] | realValue | The real parameter value that will be normalized |
Implemented in AAX_CStateTaperDelegate< T >, AAX_CRangeTaperDelegate< T, RealPrecision >, AAX_CPieceWiseLinearTaperDelegate< T, RealPrecision >, AAX_CLogTaperDelegate< T, RealPrecision >, AAX_CLinearTaperDelegate< T, RealPrecision >, and AAX_CBinaryTaperDelegate< T >.