Jamoma API  0.6.0.a19
TTAudioObjectBase.h File Reference

TTAudioObjectBase is the Jamoma DSP Audio Object Base Class More...

#include "TTObjectBase.h"
#include "TTSymbol.h"
#include "TTValue.h"
#include "TTAudioSignal.h"
#include "TTAudioSignalArray.h"
+ Include dependency graph for TTAudioObjectBase.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TTAudioObjectBase
 TTAudioObjectBase is the base class for all audio generating and processing objects in Jamoma DSP. More...
 

Macros

#define setProcessMethod(methodName)   setProcess((TTProcessMethod)& thisTTClass ::methodName )
 A convenience macro to be used by subclasses for setting the process method. More...
 
#define setCalculateMethod(methodName)   setCalculate((TTCalculateMethod)& thisTTClass ::methodName )
 A convenience macro to be used by subclasses for setting the calculate method. More...
 

Typedefs

typedef TTErr(TTAudioObjectBase::* TTProcessMethod) (TTAudioSignalArrayPtr in, TTAudioSignalArrayPtr out)
 A type that can be used to store a pointer to a process method (which calculates a vector of samples). More...
 
typedef TTErr(TTAudioObjectBase::* TTCalculateMethod) (const TTFloat64 &x, TTFloat64 &y, TTPtr data)
 A type that can be used to store a pointer to a calculate method (which calculates a single sample). More...
 
typedef TTAudioObjectBaseTTAudioObjectBasePtr
 Pointer to a TTAudioObjectBase.
 

Functions

TTFloat64 TTLinearGainToDecibels (const TTFloat64 value)
 Convert linear amplitude into deciBels. More...
 
TTFloat64 TTDecibelsToLinearGain (TTFloat64 value)
 Convert decibels into linear ampliude. More...
 
TTFloat64 TTMidiToLinearGain (TTFloat64 value)
 Convert midi into linear amplitude. More...
 
TTFloat64 TTLinearGainToMidi (TTFloat64 value)
 Convert linear amplitude into midi. More...
 
TTUInt32 TTPrime (TTUInt32 value)
 Generate the next prime number higher than the value passed in. More...
 
TTFloat64 TTDeviate (TTFloat64 value, TTFloat64 aSampleRate=1.0)
 An idiosyncratic utility for slightly randomizing a number. More...
 

Detailed Description

TTAudioObjectBase is the Jamoma DSP Audio Object Base Class

Authors
Tim Place, Nils Peters, Trond Lossius

Definition in file TTAudioObjectBase.h.

Macro Definition Documentation

#define setCalculateMethod (   methodName)    setCalculate((TTCalculateMethod)& thisTTClass ::methodName )

A convenience macro to be used by subclasses for setting the calculate method.

Parameters
methodNameThe name of the method to use for processing individual audio samples.

Definition at line 59 of file TTAudioObjectBase.h.

Referenced by TTExpFunction::setBase(), TTLogFunction::setBase(), TTFunction::setMode(), TTOnePole::setMode(), WindowFunction::setMode(), TTOperator::setOperator(), and TTPowerFunction::setSymmetry().

Function Documentation

TTFloat64 TTDeviate ( TTFloat64  value,
TTFloat64  aSampleRate = 1.0 
)
inline

An idiosyncratic utility for slightly randomizing a number.

Specifically this is used in applications such as randoming delay times for a reverb.

Parameters
valueThe value to randomise
aSampleRateCurrent sample rate
Returns
The slightly randomised value

Definition at line 471 of file TTAudioObjectBase.h.

References TTPrime().

+ Here is the call graph for this function:

TTFloat64 TTLinearGainToMidi ( TTFloat64  value)
inline

Convert linear amplitude into midi.

Definition at line 428 of file TTAudioObjectBase.h.

References kTTGainMidiPowerInv.

Referenced by PlugtasticOutput::getMidiGain(), and TTGain::getMidiGain().

TTFloat64 TTMidiToLinearGain ( TTFloat64  value)
inline

Convert midi into linear amplitude.

Definition at line 417 of file TTAudioObjectBase.h.

References kTTGainMidiPower.

Referenced by PlugtasticOutput::setMidiGain(), TTGain::setMidiGain(), and TTMixer::setMidiGain().

TTUInt32 TTPrime ( TTUInt32  value)
inline

Generate the next prime number higher than the value passed in.

Parameters
valueThe number passed in.
Returns
The next prime number higher than the number passed in.

Definition at line 438 of file TTAudioObjectBase.h.

Referenced by TTDeviate().