Jamoma API  0.6.0.a19
TTBlackmanHarrisWindow.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspWindowFunctionLib
4  *
5  * @brief Blackman-Harris Window Function Unit for Jamoma DSP
6  *
7  * @details The Blackman-Harris is a generalization of the Hamming family, produced by adding more shifted sinc functions, meant to minimize side-lobe levels. @n
8  *
9  * @authors Nils Peters, Trond Lossius, Tim Place, Nathan Wolek
10  *
11  * @copyright Copyright © 2011 by Nils Peters @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #ifndef __BLACKMANHARRISWINDOW_H__
18 #define __BLACKMANHARRISWINDOW_H__
19 
20 #include "TTDSP.h"
21 
22 
23 /** This implements a window function as described at
24  http://en.wikipedia.org/wiki/Blackman-Harris_window
25  */
28 
29 protected:
30 
31  /** Calculate y = f(x) for a single value.
32  @param x The input value to the window function.
33  @param y The resulting value for the window function.
34  @param data Not used.
35  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
36  */
37  inline TTErr calculateValue(const TTFloat64& x, TTFloat64& y, TTPtrSizedInt data);
38 
39 
40  /** A standard audio processing method as used by TTBlue objects.
41  @param inputs The input vector that is to be processed.
42  @param outputs The resulting windowed vector.
43  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
44  */
46 
47 };
48 
49 
50 #endif // __BLACKMANHARRISWINDOW_H__
TTAudioObjectBase is the base class for all audio generating and processing objects in Jamoma DSP...
Jamoma DSP Library.
double TTFloat64
64 bit floating point number
Definition: TTBase.h:188
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
Definition: TTFoundation.h:54
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
A standard audio processing method as used by TTBlue objects.
This implements a window function as described at http://en.wikipedia.org/wiki/Blackman-Harris_window...
A simple container for an array of TTAudioSignal pointers.
long TTPtrSizedInt
An integer that is the same size as a pointer.
Definition: TTBase.h:240
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
TTErr calculateValue(const TTFloat64 &x, TTFloat64 &y, TTPtrSizedInt data)
Calculate y = f(x) for a single value.