AAX SDK  2.4.1
Avid Audio Extensions Development Kit
List of all members | Public Member Functions
AAX_CBinaryTaperDelegate< T > Class Template Reference

#include <AAX_CBinaryTaperDelegate.h>

Inheritance diagram for AAX_CBinaryTaperDelegate< T >:
[legend]
Collaboration diagram for AAX_CBinaryTaperDelegate< T >:
[legend]

Description

template<typename T>
class AAX_CBinaryTaperDelegate< T >

A binary taper conforming to AAX_ITaperDelegate.

This taper maps positive real values to 1 and negative or zero real values to 0. This is the standard taper used on all bool parameters.

When this taper is constructed with a bool template type, its normalized values are automatically typecast to the proper boolean value.

Public Member Functions

 AAX_CBinaryTaperDelegate ()
 Constructs a Binary Taper. More...
 
AAX_ITaperDelegate< T > * Clone () const AAX_OVERRIDE
 Constructs and returns a copy of the taper delegate. More...
 
GetMaximumValue () const AAX_OVERRIDE
 Returns the taper's maximum real value. More...
 
GetMinimumValue () const AAX_OVERRIDE
 Returns the taper's minimum real value. More...
 
ConstrainRealValue (T value) const AAX_OVERRIDE
 Applies a contraint to the value and returns the constrained value. More...
 
NormalizedToReal (double normalizedValue) const AAX_OVERRIDE
 Converts a normalized value to a real value. More...
 
double RealToNormalized (T realValue) const AAX_OVERRIDE
 Normalizes a real parameter value. More...
 
- Public Member Functions inherited from AAX_ITaperDelegateBase
virtual ~AAX_ITaperDelegateBase ()
 Virtual destructor. More...
 

Constructor & Destructor Documentation

◆ AAX_CBinaryTaperDelegate()

Constructs a Binary Taper.

Member Function Documentation

◆ Clone()

template<typename T >
AAX_ITaperDelegate< T > * AAX_CBinaryTaperDelegate< T >::Clone ( ) const
virtual

Constructs and returns a copy of the taper delegate.

In general, this method's implementation can use a simple copy constructor:

template <typename T>
AAX_CSubclassTaperDelegate<T>* AAX_CSubclassTaperDelegate<T>::Clone() const
{
return new AAX_CSubclassTaperDelegate(*this);
}

Implements AAX_ITaperDelegate< T >.

◆ GetMaximumValue()

template<typename T >
T AAX_CBinaryTaperDelegate< T >::GetMaximumValue ( ) const
virtual

Returns the taper's maximum real value.

Implements AAX_ITaperDelegate< T >.

◆ GetMinimumValue()

template<typename T >
T AAX_CBinaryTaperDelegate< T >::GetMinimumValue ( ) const
virtual

Returns the taper's minimum real value.

Implements AAX_ITaperDelegate< T >.

◆ ConstrainRealValue()

template<typename T >
T AAX_CBinaryTaperDelegate< T >::ConstrainRealValue ( value) const
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.

Note
This is the function that should actually enforces the constraints in NormalizeToReal() and RealToNormalized().
Parameters
[in]valueThe unconstrained value

Implements AAX_ITaperDelegate< T >.

◆ NormalizedToReal()

template<typename T >
T AAX_CBinaryTaperDelegate< T >::NormalizedToReal ( double  normalizedValue) const
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.

Parameters
[in]normalizedValueThe normalized value that will be converted

Implements AAX_ITaperDelegate< T >.

◆ RealToNormalized()

template<typename T >
double AAX_CBinaryTaperDelegate< T >::RealToNormalized ( realValue) const
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.

Parameters
[in]realValueThe real parameter value that will be normalized

Implements AAX_ITaperDelegate< T >.


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