Jamoma API
0.6.0.a19
|
This implements a window function as described @ http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/windows/ hamming(x) = 0.54 + 0.46*cos(2*PI*(x-0.5)) More...
#include <TTHammingWindow.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... | |
virtual TTErr | test (TTValue &returnedTestInfo) |
Unit test for the window function unit. More... | |
This implements a window function as described @ http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/windows/ hamming(x) = 0.54 + 0.46*cos(2*PI*(x-0.5))
Definition at line 31 of file TTHammingWindow.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 41 of file TTHammingWindow.cpp.
References kTTErrNone, and kTTTwoPi.
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 48 of file TTHammingWindow.cpp.
References calculateValue().
Unit test for the window function unit.
returnedTestInfo | The outcome from the performed unit test. |
Reimplemented from TTAudioObjectBase.
Definition at line 44 of file TTHammingWindow.test.cpp.
References TTAudioSignal::allocWithVectorSize(), TTAudioSignal::mSampleVectors, TTAudioObjectBase::process(), TTObjectBase::setAttributeValue(), TT, TTObjectBaseInstantiate(), and TTObjectBaseRelease().