Jamoma API  0.6.0.a19

Tukey Window Function Unit for Jamoma DSP. More...

#include "TTDSP.h"
+ Include dependency graph for TTTukeyWindow.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TukeyWindow
 This implements the Tukey window function described here: http://en.wikipedia.org/wiki/File:Window_function_(Tukey;alpha%3D_0.5).png This is alternate implementation of what Roads (1996 p 170, 2001 p 88) typically refers to as a quasi-Gaussian window. More...
 

Detailed Description

Tukey Window Function Unit for Jamoma DSP.

This implements the Tukey window function described here:
http://en.wikipedia.org/wiki/File:Window_function_(Tukey;alpha%3D_0.5).png
This is alternate implementation of what Roads (1996 p 170, 2001 p 88) typically refers to as a quasi-Gaussian window. It is easier to ensure that x and y values will scale properly with this formula as opposed to the one given by Roads.

Where 0. <= x <= 1. and 0. <= mAlpha <= 1.:
y = 0.5 * (1 + cos ( pi * ((twoOverAlpha * x) - 1))) : for the attack
= 1 : for the sustain
= 0.5 * (1 + cos ( pi * ((twoOverAlpha * x) - twoOverAlpha + 1))) : for the release

Authors
Nathan Wolek, Tim Place, Trond Lossius

Definition in file TTTukeyWindow.h.