18 #define thisTTClass Lissajous3D
19 #define thisTTClassName "lissajous.knot.3D"
20 #define thisTTClassTags "audio, trajectory, knot, 3D"
30 setAttributeValue(
TT(
"a"), 3.0);
31 setAttributeValue(
TT(
"b"), 2.0);
32 setAttributeValue(
TT(
"c"), 7.0);
33 setAttributeValue(
TT(
"deltaX"), 0.7);
34 setAttributeValue(
TT(
"deltaY"), 0.2);
41 Lissajous3D::~Lissajous3D()
59 if (numOutputChannels != 3) {
62 out.setNumChannels(v);
66 TTUInt16 vs = in0.getVectorSizeAsInt();
73 for (
int i=0; i<vs; i++) {
75 outSampleX[i] = cos((inSampleX[i]* mA *
kTTTwoPi) + mDeltaX);
76 outSampleY[i] = cos((inSampleX[i]* mB *
kTTTwoPi) + mDeltaY);
77 outSampleZ[i] = cos((inSampleX[i]* mC *
kTTTwoPi));
std::uint16_t TTUInt16
16 bit unsigned integer
#define addAttribute(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom getter...
Lissajous Knot Function Unit in 3D for Jamoma DSP.
TTFOUNDATION_EXPORT const TTFloat64 kTTTwoPi
Pre-calculated value of pi * 2.
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
TTErr setMaxNumChannels(const TTValue &newMaxNumChannels)
Attribute accessor.
The TTAudioSignal class represents N vectors of audio samples for M channels.
TTSampleValue ** mSampleVectors
An array of pointers to the first sample in each vector. Declared Public for fast access...
TTUInt16 TTChannelCount
Data type used when counting the number of channels in multi-channel audio signals and processes...
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...
[doxygenAppendixC_copyExample]