Jamoma API  0.6.0.a19
TTQuadraticEaseInFunction.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspFunctionLib
4  *
5  * @brief #TTQuadraticEaseInFunction Unit for Jamoms DSP
6  *
7  * @details Modeled after the parabola y = x^2. @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 
21 
22 #define thisTTClass TTQuadraticEaseInFunction
23 #define thisTTClassName "easeInQuadratic"
24 #define thisTTClassTags "dspFunctionLib, audio, processor, function"
25 
26 
27 TT_AUDIO_CONSTRUCTOR
28 {
29  setProcessMethod(processAudio);
30  setCalculateMethod(calculateValue);
31 }
32 
33 
34 TTQuadraticEaseInFunction::~TTQuadraticEaseInFunction()
35 {
36  ;
37 }
38 
39 
41 {
42  y = x * x;
43  return kTTErrNone;
44 }
45 
46 
48 {
49  TT_WRAP_CALCULATE_METHOD(calculateValue);
50 }
51 
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
TTErr calculateValue(const TTFloat64 &x, TTFloat64 &y, TTPtrSizedInt data)
y = f(x) for a single value
double TTFloat64
64 bit floating point number
Definition: TTBase.h:188
TTQuadraticEaseInFunction Unit for Jamoms DSP
#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.
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
A standard audio processing method as used by TTBlue objects.
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