18 #define thisTTClass Torus3D
19 #define thisTTClassName "torus.knot.3D"
20 #define thisTTClassTags "audio, trajectory, knot, 3D"
27 setAttributeValue(
TT(
"a"), 3.0);
28 setAttributeValue(
TT(
"b"), 7.0);
55 if (numOutputChannels != 3) {
58 out.setNumChannels(v);
63 TTUInt16 vs = in0.getVectorSizeAsInt();
71 for (
int i=0; i<vs; i++) {
72 phi = inSampleX[i] *
kTTPi;
73 r = cos(mB * phi) + 2.0;
74 outSampleX[i] = r * cos(mA * phi);
75 outSampleY[i] = r * sin(mA * phi);
76 outSampleZ[i] = sin(mB * phi);
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...
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
double TTFloat64
64 bit floating point number
#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...
Torus Knot Unit in 3D for Jamoma DSP.
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...
TTFOUNDATION_EXPORT const TTFloat64 kTTPi
[doxygenAppendixC_constExample]
[doxygenAppendixC_copyExample]