Jamoma API  0.6.0.a19
TTNuttallWindow.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspWindowFunctionLib
4  *
5  * @brief Nuttall Window Function Unit for Jamoma DSP
6  *
7  * @details This implements a window function as described at
8  http://en.wikipedia.org/wiki/Window_function#Nuttall_window.2C_continuous_first_derivative @n
9  *
10  * @authors Nils Peters, Nathan Wolek, Tim Place, Trond Lossius
11  *
12  * @copyright Copyright © 2011 by Nils Peters @n
13  * This code is licensed under the terms of the "New BSD License" @n
14  * http://creativecommons.org/licenses/BSD/
15  */
16 
17 
18 #ifndef __NUTTALLWINDOW_H__
19 #define __NUTTALLWINDOW_H__
20 
21 #include "TTDSP.h"
22 
23 
24 /** This implements a window function as described at
25  http://en.wikipedia.org/wiki/Window_function#Nuttall_window.2C_continuous_first_derivative
26  */
29 
30 protected:
31 
32  /** Calculate y = f(x) for a single value.
33  @param x The input value to the window function.
34  @param y The resulting value for the window function.
35  @param data Not used.
36  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
37  */
38  inline TTErr calculateValue(const TTFloat64& x, TTFloat64& y, TTPtrSizedInt data);
39 
40 
41  /** A standard audio processing method as used by TTBlue objects.
42  @param inputs The input vector that is to be processed.
43  @param outputs The resulting windowed vector.
44  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
45  */
47 
48 };
49 
50 
51 #endif // __NUTTALLWINDOW_H__
TTAudioObjectBase is the base class for all audio generating and processing objects in Jamoma DSP...
This implements a window function as described at http://en.wikipedia.org/wiki/Window_function#Nuttal...
Jamoma DSP Library.
double TTFloat64
64 bit floating point number
Definition: TTBase.h:188
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
A standard audio processing method as used by TTBlue objects.
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
Definition: TTFoundation.h:54
A simple container for an array of TTAudioSignal pointers.
TTErr calculateValue(const TTFloat64 &x, TTFloat64 &y, TTPtrSizedInt data)
Calculate y = f(x) for a single value.
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