Jamoma API  0.6.0.a19
TTLinearFunction.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspFunctionLib
4  *
5  * @brief #TTLinearFunction Unit for Jamoms DSP
6  *
7  * @details
8  *
9  * @authors Timothy Place, Trond Lossius
10  *
11  * @copyright Copyright © 2007 by Timothy Place @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 __TTLINEARFUNCTION_H__
18 #define __TTLINEARFUNCTION_H__
19 
20 #include "TTDSP.h"
21 
22 
23 /** This implements a function which basically does nothing:
24  y = f(x)
25  */
28 
29 protected:
30 
31  /** y = f(x) for a single value */
32  inline TTErr calculateValue(const TTFloat64& x, TTFloat64& y, TTPtrSizedInt data);
33 
34  /** A standard audio processing method as used by TTBlue objects.*/
36 
37  /** Unit Tests */
38  virtual TTErr test(TTValue& returnedTestInfo);
39 };
40 
41 
42 #endif // __LINEARFUNCTION_H__
This implements a function which basically does nothing: y = f(x)
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.
TTErr calculateValue(const TTFloat64 &x, TTFloat64 &y, TTPtrSizedInt data)
y = f(x) for a single value
A simple container for an array of TTAudioSignal pointers.
virtual TTErr test(TTValue &returnedTestInfo)
Unit Tests.
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
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34