Jamoma API  0.6.0.a19
TTOperator Class Reference

TTOperator performs basic mathematical operations on an input signal, or a pair of input signals. More...

#include <TTOperator.h>

+ Inheritance diagram for TTOperator:
+ Collaboration diagram for TTOperator:

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.
 

Detailed Description

TTOperator performs basic mathematical operations on an input signal, or a pair of input signals.

Definition at line 16 of file TTOperator.h.

Member Function Documentation

TTErr TTOperator::processAdd ( TTAudioSignalArrayPtr  inputs,
TTAudioSignalArrayPtr  outputs 
)
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().

TTErr TTOperator::setOperand ( const TTValue newValue)

setter for the operand attribute.

Definition at line 116 of file TTOperator.cpp.

References kTTErrNone, mOperand, mOperandIsInteger, and mOperandIsPowerOfTwo.

TTErr TTOperator::setOperator ( const TTValue newValue)

setter for the operator attribute.

Definition at line 33 of file TTOperator.cpp.

References kTTErrInvalidValue, kTTErrNone, mOperator, processAdd(), setCalculateMethod, setProcessMethod, and TT.

+ Here is the call graph for this function:


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