Jamoma API  0.6.0.a19
BartlettWindow Class Reference

The Bartlett window is a triangular window that reach 0 at the end points (x=0 and x=1) y = 1 - |2x-1|. More...

#include <TTBartlettWindow.h>

+ Inheritance diagram for BartlettWindow:
+ Collaboration diagram for BartlettWindow:

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

Detailed Description

The Bartlett window is a triangular window that reach 0 at the end points (x=0 and x=1) y = 1 - |2x-1|.

Definition at line 26 of file TTBartlettWindow.h.

Member Function Documentation

TTErr BartlettWindow::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 36 of file TTBartlettWindow.cpp.

References kTTErrNone.

Referenced by processAudio().

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

A standard audio processing method as used by TTBlue 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 43 of file TTBartlettWindow.cpp.

References calculateValue().

+ Here is the call graph for this function:


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