Jamoma API  0.6.0.a19
TTBackEaseInOutFunction.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup dspFunctionLib
4  *
5  * @brief #TTBackEaseInOutFunction Unit for Jamoms DSP
6  *
7  * @details Modeled after the piecewise overshooting cubic function: @n
8  * y = (1/2)*((2x)^3-(2x)*sin(2*x*pi)) ; [0, 0.5) @n
9  * y = (1/2)*(1-((1-x)^3-(1-x)*sin((1-x)*pi))+1) ; [0.5, 1] @n
10  * @n
11  * Derived from Sam Hocevar's public domain C/C++ implementation of
12  * Robert Penner easing functions
13  *
14  * @authors Trond Lossius
15  *
16  * @copyright Copyright © 2014 by Trond Lossius @n
17  * This code is licensed under the terms of the "New BSD License" @n
18  * http://creativecommons.org/licenses/BSD/
19  */
20 
21 
22 #ifndef __TTBACKEASEINOUTFUNCTION_H__
23 #define __TTBACKEASEINOUTFUNCTION_H__
24 
25 #include "TTDSP.h"
26 
27 
28 /** This implements a function which basically does nothing:
29  y = f(x)
30  */
33 
34 protected:
35 
36  /** y = f(x) for a single value */
37  inline TTErr calculateValue(const TTFloat64& x, TTFloat64& y, TTPtrSizedInt data);
38 
39  /** A standard audio processing method as used by TTBlue objects.*/
41 
42  /** Unit Tests */
43  virtual TTErr test(TTValue& returnedTestInfo);
44 };
45 
46 
47 #endif // __TTBACKEASEINOUTFUNCTION_H__
virtual TTErr test(TTValue &returnedTestInfo)
Unit Tests.
This implements a function which basically does nothing: y = f(x)
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
A standard audio processing method as used by TTBlue objects.
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
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
TTErr calculateValue(const TTFloat64 &x, TTFloat64 &y, TTPtrSizedInt data)
y = f(x) for a single value
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34