Jamoma API  0.6.0.a19
TTPowerFunction Class Reference

A function unit that provides exponential curves, along with a number of options to control the behavior of the curve. More...

#include <TTPowerFunction.h>

+ Inheritance diagram for TTPowerFunction:
+ Collaboration diagram for TTPowerFunction:

Protected Member Functions

TTErr setSymmetry (const TTValue &newValue)
 Attribute setter. More...
 
TTErr setPowerValue (const TTValue &newValue)
 Attribute setter. More...
 
TTErr calculatePoint (const TTFloat64 &x, TTFloat64 &y, TTPtrSizedInt data)
 y = f(x) for a single value
 
TTErr processAudio (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
 A standard audio processing method as used by TTBlue objects. More...
 
virtual TTErr test (TTValue &returnedTestInfo)
 Unit Tests.
 

Protected Attributes

TTSymbol mSymmetry
 Mode: none, point or axis.
 
double mPowerValue
 Parameter for function: y pow(x,pow(2,powerValue))
 
double mK
 k = pow(2,powerValue)
 

Detailed Description

A function unit that provides exponential curves, along with a number of options to control the behavior of the curve.

Definition at line 26 of file TTPowerFunction.h.

Member Function Documentation

TTErr TTPowerFunction::processAudio ( TTAudioSignalArrayPtr  inputs,
TTAudioSignalArrayPtr  outputs 
)
protected

A standard audio processing method as used by TTBlue objects.

Definition at line 95 of file TTPowerFunction.cpp.

References TTAudioObjectBase::calculateMethod, TTAudioSignal::getMinChannelCount(), kTTErrNone, and TTAudioSignal::mSampleVectors.

+ Here is the call graph for this function:

TTErr TTPowerFunction::setPowerValue ( const TTValue newValue)
protected

Attribute setter.

Definition at line 56 of file TTPowerFunction.cpp.

References kTTErrNone, mK, and mPowerValue.

TTErr TTPowerFunction::setSymmetry ( const TTValue newValue)
protected

Attribute setter.

Definition at line 42 of file TTPowerFunction.cpp.

References calculatePoint(), kTTErrNone, mSymmetry, setCalculateMethod, and TT.

+ Here is the call graph for this function:


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