Jamoma API
0.6.0.a19
|
This implements the Gauss window function described here:
http://en.wikipedia.org/wiki/File:Window_function_(gauss).png
Be aware that when higher values are used for mSigma, minimum sample value will approach -17 dB
Where 0.
More...
#include <TTGaussWindow.h>
Protected Member Functions | |
TTErr | calculateValue (const TTFloat64 &x, TTFloat64 &y, TTPtrSizedInt data) |
Calculate y = f(x) for a single value. More... | |
TTErr | processAudio (TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs) |
A standard audio processing method as used by TTBlue objects. More... | |
TTErr | test (TTValue &returnedTestInfo) |
Unit test for the window function unit. More... | |
Protected Attributes | |
TTFloat64 | mSigma |
sigma effects the width of the Gaussion window. 0. <= sigma <= 0.5 | |
This implements the Gauss window function described here:
http://en.wikipedia.org/wiki/File:Window_function_(gauss).png
Be aware that when higher values are used for mSigma, minimum sample value will approach -17 dB
Where 0.
<= x <= 1. and 0. <= mSigma <= 0.5:
superscript = -0.5 * ( ( (2 * x) - 1 ) / mSigma )^2
y = e^ superscript
Definition at line 37 of file TTGaussWindow.h.
|
inlineprotected |
Calculate y = f(x) for a single value.
x | The input value to the window function. |
y | The resulting value for the window function. |
data | Not used. |
Definition at line 49 of file TTGaussWindow.cpp.
References kTTErrNone, and mSigma.
Referenced by processAudio().
|
protected |
A standard audio processing method as used by TTBlue objects.
inputs | The input vector that is to be processed. |
outputs | The resulting windowed vector. |
Definition at line 60 of file TTGaussWindow.cpp.
References calculateValue().
Unit test for the window function unit.
returnedTestInfo | The outcome from the performed unit test. |
Reimplemented from TTAudioObjectBase.
Definition at line 62 of file TTGaussWindow.test.cpp.
References TTAudioSignal::allocWithVectorSize(), TTAudioSignal::mSampleVectors, TTAudioObjectBase::process(), TTObjectBase::setAttributeValue(), TT, TTObjectBaseInstantiate(), and TTObjectBaseRelease().