Jamoma API  0.6.0.a19
TTFunctionLib.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspFunctionLib
4  *
5  * @brief FuncitonLib extends Jamoma DSP with a set of functions for mapping, ramping and more, including Robert Penner's easing functions
6  *
7  * @details FunctionLib makes use of code derived from Sam Hocevar's public domain C/C++ implementation of Robert Penner easing functions
8  *
9  * @authors Tim Place, Trond Lossius, Dave Watson
10  *
11  * @copyright Copyright © 2008 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 "TTDSP.h"
18 #include "TTExpFunction.h"
19 #include "TTFreeHandFunction.h"
20 #include "TTLinearFunction.h"
21 #include "TTLogFunction.h"
22 #include "TTLowpassFunction.h"
23 #include "TTPowerFunction.h"
25 #include "TTTanhFunction.h"
26 
30 #include "TTCubicEaseInFunction.h"
31 #include "TTCubicEaseOutFunction.h"
39 #include "TTSineEaseInFunction.h"
40 #include "TTSineEaseOutFunction.h"
51 #include "TTBackEaseInFunction.h"
52 #include "TTBackEaseOutFunction.h"
54 #include "TTBounceEaseInFunction.h"
57 
58 #include "TTFunction.h"
59 
60 
61 extern "C" TT_EXTENSION_EXPORT TTErr TTLoadJamomaExtension_FunctionLib(void)
62 {
63  TTDSPInit();
64 
65  // Register all functions
66 
67  // Linear should show up first
68  TTLinearFunction::registerClass();
69 
70  // Robert Penner easing functions
71  TTBackEaseInFunction::registerClass();
72  TTBackEaseInOutFunction::registerClass();
73  TTBackEaseOutFunction::registerClass();
74  TTBounceEaseInFunction::registerClass();
75  TTBounceEaseInOutFunction::registerClass();
76  TTBounceEaseOutFunction::registerClass();
77  TTCircularEaseInFunction::registerClass();
78  TTCircularEaseInOutFunction::registerClass();
79  TTCircularEaseOutFunction::registerClass();
80  TTCubicEaseInFunction::registerClass();
81  TTCubicEaseInOutFunction::registerClass();
82  TTCubicEaseOutFunction::registerClass();
83  TTElasticEaseInFunction::registerClass();
84  TTElasticEaseInOutFunction::registerClass();
85  TTElasticEaseOutFunction::registerClass();
86  TTExponentialEaseInFunction::registerClass();
87  TTExponentialEaseInOutFunction::registerClass();
88  TTExponentialEaseOutFunction::registerClass();
89  TTQuadraticEaseInFunction::registerClass();
90  TTQuadraticEaseInOutFunction::registerClass();
91  TTQuadraticEaseOutFunction::registerClass();
92  TTQuarticEaseInFunction::registerClass();
93  TTQuarticEaseInOutFunction::registerClass();
94  TTQuarticEaseOutFunction::registerClass();
95  TTQuinticEaseInFunction::registerClass();
96  TTQuinticEaseInOutFunction::registerClass();
97  TTQuinticEaseOutFunction::registerClass();
98  TTSineEaseInFunction::registerClass();
99  TTSineEaseInOutFunction::registerClass();
100  TTSineEaseOutFunction::registerClass();
101 
102  // More regular functions
103  TTExpFunction::registerClass();
104  TTFreeHandFunction::registerClass();
105  TTLogFunction::registerClass();
106  TTLowpassFunction::registerClass();
107  TTPowerFunction::registerClass();
108  TTSmoothPolynomialFunction::registerClass();
109  TTTanhFunction::registerClass();
110 
111  TTFunction::registerClass();
112 
113  return kTTErrNone;
114 }
115 
TTCircularEaseInFunction Unit for Jamoms DSP
TTExponentialEaseOutFunction Unit for Jamoms DSP
TTExpFunction Unit for Jamoms DSP
TTCubicEaseInFunction Unit for Jamoms DSP
TTSineEaseInFunction Unit for Jamoms DSP
TTSineEaseInOutFunction Unit for Jamoms DSP
TTBounceEaseInOutFunction Unit for Jamoms DSP
TTCubicEaseInOutFunction Unit for Jamoms DSP
TTLinearFunction Unit for Jamoms DSP
TTQuarticEaseInFunction Unit for Jamoms DSP
TTSineEaseOutFunction Unit for Jamoms DSP
Jamoma DSP Library.
TTCircularEaseInOutFunction Unit for Jamoms DSP
TTQuinticEaseOutFunction Unit for Jamoms DSP
TTPowerFunction Unit for Jamoms DSP
TTQuadraticEaseOutFunction Unit for Jamoms DSP
TTQuadraticEaseInFunction Unit for Jamoms DSP
TTQuinticEaseInFunction Unit for Jamoms DSP
TTTanhFunction Unit for Jamoms DSP
TTFreeHandFunction Unit for Jamoms DSP
TTElasticEaseInOutFunction Unit for Jamoms DSP
TTQuinticEaseInOutFunction Unit for Jamoms DSP
TTQuadraticEaseInOutFunction Unit for Jamoms DSP
void TTDSP_EXPORT TTDSPInit(const char *pathToBinaries=NULL)
Initialise the Jamoma DSP library, as well as Jamoma Foundation foundation if needed.
Definition: TTDSP.cpp:30
TTElasticEaseOutFunction Unit for Jamoms DSP
TTExponentialEaseInFunction Unit for Jamoms DSP
TTElasticEaseInFunction Unit for Jamoms DSP
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
TTBounceEaseInFunction Unit for Jamoms DSP
TTCubicEaseOutFunction Unit for Jamoms DSP
TTFunction is a generalized function wrapper for Jamoma DSP
TTBackEaseOutFunction Unit for Jamoms DSP
No Error.
Definition: TTBase.h:343
TTBounceEaseOutFunction Unit for Jamoms DSP
TTBackEaseInFunction Unit for Jamoms DSP
TTSmoothPolynomialFunction Unit for Jamoms DSP
TTLogFunction Unit for Jamoms DSP
TTQuarticEaseOutFunction Unit for Jamoms DSP
TTLowpassFunction Unit for Jamoms DSP
TTBackEaseInOutFunction Unit for Jamoms DSP
TTQuarticEaseInOutFunction Unit for Jamoms DSP
TTExponentialEaseInOutFunction Unit for Jamoms DSP
TTCircularEaseOutFunction Unit for Jamoms DSP