Jamoma API
0.6.0.a19
|
This implements a speach/voice emulating glottal pulse window function as described @ http://staff.science.uva.nl/~wzajdel/audiocourse/practicum/lab56.pdf
http://www.fon.hum.uva.nl/david/ma_ssp/2007/rosenberg_JASA_1971.pdf.
More...
#include <TTRosenbergGlottalPulseWindow.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 Jamoma DSP objects. More... | |
virtual TTErr | test (TTValue &returnedTestInfo) |
Unit test for the window function unit. More... | |
Protected Attributes | |
TTFloat64 | mRatio |
Thew ratio attribute controls how large part of the window is used for the initial increase (attack) as compared to the decay part. | |
This implements a speach/voice emulating glottal pulse window function as described @ http://staff.science.uva.nl/~wzajdel/audiocourse/practicum/lab56.pdf
http://www.fon.hum.uva.nl/david/ma_ssp/2007/rosenberg_JASA_1971.pdf.
Definition at line 31 of file TTRosenbergGlottalPulseWindow.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 48 of file TTRosenbergGlottalPulseWindow.cpp.
References kTTErrNone, kTTPi, and mRatio.
Referenced by processAudio().
|
protected |
A standard audio processing method as used by Jamoma DSP objects.
inputs | The input vector that is to be processed. |
outputs | The resulting windowed vector. |
Definition at line 60 of file TTRosenbergGlottalPulseWindow.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 TTRosenbergGlottalPulseWindow.test.cpp.
References TTAudioSignal::allocWithVectorSize(), TTAudioSignal::mSampleVectors, TTAudioObjectBase::process(), TTValue::resize(), TTObjectBase::sendMessage(), TTObjectBase::setAttributeValue(), TT, TTObjectBaseInstantiate(), and TTObjectBaseRelease().