Jamoma API  0.6.0.a19
TTLogFunction Class Reference

A function unit providing logaritmic mapping with variable base y = (log(x)/log(base)-1) / (base - 1) More...

#include <TTLogFunction.h>

+ Inheritance diagram for TTLogFunction:
+ Collaboration diagram for TTLogFunction:

Protected Member Functions

TTErr setBase (const TTValue &value)
 Calculate coefficients when this attr is set.
 
TTErr calculateValue (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

TTFloat64 mBase
 Base for the exponential function.
 
double k
 Internal coefficient.
 
double l
 Internal coefficient.
 

Detailed Description

A function unit providing logaritmic mapping with variable base y = (log(x)/log(base)-1) / (base - 1)

Definition at line 26 of file TTLogFunction.h.

Member Function Documentation

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

A standard audio processing method as used by TTBlue objects.

Definition at line 89 of file TTLogFunction.cpp.

References calculateValue().

Referenced by setBase().

+ Here is the call graph for this function:


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