|
Jamoma API
0.6.0.a19
|
This implements a Trapezoid window using the following algorthim: More...
#include <TTTrapezoidWindow.h>
Inheritance diagram for TrapezoidWindow:
Collaboration diagram for TrapezoidWindow: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... | |
Protected Attributes | |
| TTFloat64 | mAlpha |
| Set the alpha attribute of the Trapezoid window function. More... | |
This implements a Trapezoid window using the following algorthim:
Where 0. <= x <= 1. and 0. <= mAlpha <= 1.: y = x * twoOverAlpha : for the attack = 1 : for the sustain = (1 - x) * twoOverAlpha : for the release
Definition at line 34 of file TTTrapezoidWindow.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 TTTrapezoidWindow.cpp.
References kTTErrNone, and mAlpha.
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 74 of file TTTrapezoidWindow.cpp.
References calculateValue().
Here is the call graph for this function:
|
protected |
Set the alpha attribute of the Trapezoid window function.
| newValue | The new value to apply. |
Definition at line 43 of file TTTrapezoidWindow.h.
Referenced by calculateValue().