Jamoma API
0.6.0.a19
|
TTOperator performs basic mathematical operations on an input signal, or a pair of input signals. More...
#include <TTOperator.h>
Public Member Functions | |
TTErr | setOperator (const TTValue &newValue) |
setter for the operator attribute. More... | |
TTErr | setOperand (const TTValue &newValue) |
setter for the operand attribute. More... | |
Protected Member Functions | |
TTErr | processAdd (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs) |
A standard audio processing method as used by TTBlue objects. More... | |
Protected Attributes | |
TTSymbol | mOperator |
The type of calculation to perform. | |
TTFloat64 | mOperand |
The right-hand value of the calculation. | |
TTBoolean | mOperandIsInteger |
Set to true if there is no fractional part. | |
TTBoolean | mOperandIsPowerOfTwo |
Set to true is the operand is a power of two to optimize some operations. | |
TTOperator performs basic mathematical operations on an input signal, or a pair of input signals.
Definition at line 16 of file TTOperator.h.
|
protected |
A standard audio processing method as used by TTBlue objects.
Definition at line 191 of file TTOperator.cpp.
References TTAudioSignalArray::numAudioSignals.
Referenced by setOperator().
setter for the operand attribute.
Definition at line 116 of file TTOperator.cpp.
References kTTErrNone, mOperand, mOperandIsInteger, and mOperandIsPowerOfTwo.
setter for the operator attribute.
Definition at line 33 of file TTOperator.cpp.
References kTTErrInvalidValue, kTTErrNone, mOperator, processAdd(), setCalculateMethod, setProcessMethod, and TT.