Jamoma API  0.6.0.a19
TTCubicEaseInFunction.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspFunctionLib
4  *
5  * @brief #TTCubicEaseInFunction Unit for Jamoms DSP
6  *
7  * @details Modeled after the cubic y = x^3 @n
8  * @n
9  * Derived from Sam Hocevar's public domain C/C++ implementation of
10  * Robert Penner easing functions
11  *
12  * @authors Trond Lossius
13  *
14  * @copyright Copyright © 2014 by Trond Lossius @n
15  * This code is licensed under the terms of the "New BSD License" @n
16  * http://creativecommons.org/licenses/BSD/
17  */
18 
19 
20 #include "TTCubicEaseInFunction.h"
21 
22 #define thisTTClass TTCubicEaseInFunction
23 #define thisTTClassName "easeInCubic"
24 #define thisTTClassTags "dspFunctionLib, audio, processor, function"
25 
26 
27 TT_AUDIO_CONSTRUCTOR
28 {
29  setProcessMethod(processAudio);
30  setCalculateMethod(calculateValue);
31 }
32 
33 
34 TTCubicEaseInFunction::~TTCubicEaseInFunction()
35 {
36  ;
37 }
38 
39 
41 {
42  y = x * x * x;
43  return kTTErrNone;
44 }
45 
46 
48 {
49  TT_WRAP_CALCULATE_METHOD(calculateValue);
50 }
51 
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
A standard audio processing method as used by TTBlue objects.
TTCubicEaseInFunction Unit for Jamoms DSP
TTErr calculateValue(const TTFloat64 &x, TTFloat64 &y, TTPtrSizedInt data)
y = f(x) for a single value
#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.
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