Jamoma API  0.6.0.a19
TTLinearFunction.cpp
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 #include "TTLinearFunction.h"
18 
19 #define thisTTClass TTLinearFunction
20 #define thisTTClassName "linear"
21 #define thisTTClassTags "dspFunctionLib, audio, processor, function"
22 
23 
24 TT_AUDIO_CONSTRUCTOR
25 {
26  setProcessMethod(processAudio);
27  setCalculateMethod(calculateValue);
28 }
29 
30 
31 TTLinearFunction::~TTLinearFunction()
32 {
33  ;
34 }
35 
36 
38 {
39  y = x;
40  return kTTErrNone;
41 }
42 
43 
45 {
46  TT_WRAP_CALCULATE_METHOD(calculateValue);
47 }
48 
TTLinearFunction Unit for Jamoms DSP
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
double TTFloat64
64 bit floating point number
Definition: TTBase.h:188
#define setCalculateMethod(methodName)
A convenience macro to be used by subclasses for setting the calculate method.
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.
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
No Error.
Definition: TTBase.h:343