Jamoma API  0.6.0.a19
RosenbergGlottalPulseWindow Class Reference

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>

+ Inheritance diagram for RosenbergGlottalPulseWindow:
+ Collaboration diagram for RosenbergGlottalPulseWindow:

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.
 

Detailed Description

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.

Member Function Documentation

TTErr RosenbergGlottalPulseWindow::calculateValue ( const TTFloat64 x,
TTFloat64 y,
TTPtrSizedInt  data 
)
inlineprotected

Calculate y = f(x) for a single value.

Parameters
xThe input value to the window function.
yThe resulting value for the window function.
dataNot used.
Returns
TTErr error code if the method fails to execute, else kTTErrNone.

Definition at line 48 of file TTRosenbergGlottalPulseWindow.cpp.

References kTTErrNone, kTTPi, and mRatio.

Referenced by processAudio().

TTErr RosenbergGlottalPulseWindow::processAudio ( TTAudioSignalArrayPtr  inputs,
TTAudioSignalArrayPtr  outputs 
)
protected

A standard audio processing method as used by Jamoma DSP objects.

Parameters
inputsThe input vector that is to be processed.
outputsThe resulting windowed vector.
Returns
TTErr error code if the method fails to execute, else kTTErrNone.

Definition at line 60 of file TTRosenbergGlottalPulseWindow.cpp.

References calculateValue().

+ Here is the call graph for this function:

TTErr RosenbergGlottalPulseWindow::test ( TTValue returnedTestInfo)
protectedvirtual

Unit test for the window function unit.

Parameters
returnedTestInfoThe outcome from the performed unit test.
Returns
TTErr error code if the method fails to execute, else kTTErrNone.

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().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: