Jamoma API  0.6.0.a19
Bspline2D.h
1 /*
2  * Bspline Function Unit for TTBlue
3  * based on the bspline code by Jasch: http://www.jasch.ch/
4  * ported by Nils Peters
5  *
6  */
7 
8 #ifndef __BSPLINE_2D_H__
9 #define __BSPLINE_2D_H__
10 
11 #include "TTDSP.h"
12 
13 #define MAXSIZE 256
14 
15 
16 class Bspline2D : TTAudioObjectBase {
17  TTCLASS_SETUP(Bspline2D)
18 
19 protected:
20 
21  TTUInt16 mResolution, mSteps;
22  TTFloat64 b_control[3 * MAXSIZE];
23  TTFloat64 b_op[3];
24  TTUInt16 b_knots[MAXSIZE * 3];
25  TTFloat64 interval;
26  TTFloat64 point3D[3];
27  TTUInt8 mDimen, mDegree;
28 
29 
30  //inline TTErr calculateValue(const TTFloat64& x, TTFloat64& y, TTPtrSizedInt data);
31 
32  /** A standard audio processing method as used by Jamoma DSP objects.
33  @param inputs The input vector that is to be processed.
34  @param outputs The resulting windowed vector.
35  @return #TTErr error code if the method fails to execute, else #kTTErrNone.
36  */
37  TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs);
38  void calculatePoint();
39  void calculateKnots();
40  float calculateBlend(TTUInt16 k, TTUInt16 t);
41 };
42 
43 
44 #endif // __BSPLINE_2D_H__
std::uint16_t TTUInt16
16 bit unsigned integer
Definition: TTBase.h:176
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.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
unsigned char TTUInt8
8 bit unsigned integer (char)
Definition: TTBase.h:174