Jamoma API
0.6.0.a19
|
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"
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 TTAudioObjectBase * | TTAudioObjectBasePtr |
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... | |
TTAudioObjectBase is the Jamoma DSP Audio Object Base Class
Definition in file TTAudioObjectBase.h.
#define setCalculateMethod | ( | methodName | ) | setCalculate((TTCalculateMethod)& thisTTClass ::methodName ) |
A convenience macro to be used by subclasses for setting the calculate method.
methodName | The 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().
#define setProcessMethod | ( | methodName | ) | setProcess((TTProcessMethod)& thisTTClass ::methodName ) |
A convenience macro to be used by subclasses for setting the process method.
methodName | The name of the method to use for processing audio vectors. |
Definition at line 53 of file TTAudioObjectBase.h.
Referenced by TTGain::getGain(), TTGain::processAudioInterpolated(), TTMutesolo::processAudioInterpolated(), TTMixer::processAudioInterpolated(), TTExpFunction::setBase(), TTLogFunction::setBase(), TTGain::setGain(), TTMixer::setGain(), TTDelay::setInterpolation(), TTWavetable::setInterpolation(), TTMixer::setLinearGain(), TTGain::setMidiGain(), TTMixer::setMidiGain(), TTFunction::setMode(), TTOnePole::setMode(), WindowFunction::setMode(), TTOverdrive::setMode(), TTNoise::setMode(), TTAverage::setMode(), TTAdsr::setMode(), TTOperator::setOperator(), TTSoundfileRecorder::setRecord(), TTWaveshaper::setShape(), TTRamp::setupProcess(), TTAudioUnit::TTAudioUnit(), and TTMutesolo::updateGains().
Convert decibels into linear ampliude.
Definition at line 406 of file TTAudioObjectBase.h.
Referenced by TTAdsr::processAudioExponential(), TTAdsr::processAudioHybrid(), PlugtasticOutput::setGain(), TTMultiMixer::setGain(), TTPhasor::setGain(), TTGain::setGain(), TTWavetable::setGain(), TTAllpass1::setGain(), TTMixer::setGain(), TTNoise::setGain(), TTLimiter::setPostamp(), TTOverdrive::setPreamp(), TTAdsr::setSustainDb(), and TTLimiter::setThreshold().
An idiosyncratic utility for slightly randomizing a number.
Specifically this is used in applications such as randoming delay times for a reverb.
value | The value to randomise |
aSampleRate | Current sample rate |
Definition at line 471 of file TTAudioObjectBase.h.
References TTPrime().
Convert linear amplitude into deciBels.
Definition at line 392 of file TTAudioObjectBase.h.
Referenced by PlugtasticOutput::getGain(), TTPhasor::getGain(), TTGain::getGain(), TTNoise::getGain(), TTLimiter::getPostamp(), TTOverdrive::getPreamp(), TTAdsr::getSustainDb(), TTLimiter::getThreshold(), TTAdsr::processAudioHybrid(), TTAllpass1::setLinearGain(), and TTAdsr::setSustainAmp().
Convert linear amplitude into midi.
Definition at line 428 of file TTAudioObjectBase.h.
References kTTGainMidiPowerInv.
Referenced by PlugtasticOutput::getMidiGain(), and TTGain::getMidiGain().
Convert midi into linear amplitude.
Definition at line 417 of file TTAudioObjectBase.h.
References kTTGainMidiPower.
Referenced by PlugtasticOutput::setMidiGain(), TTGain::setMidiGain(), and TTMixer::setMidiGain().
Generate the next prime number higher than the value passed in.
value | The number passed in. |
Definition at line 438 of file TTAudioObjectBase.h.
Referenced by TTDeviate().