19 #define thisTTClass Spiral3D
20 #define thisTTClassName "spherical.spiral.3D"
21 #define thisTTClassTags "audio, trajectory, 3D, Spiral"
49 if (numOutputChannels != 3) {
52 out.setNumChannels(v);
56 TTUInt16 vs = in0.getVectorSizeAsInt();
65 for (
int i=0; i<vs; i++) {
68 c = sqrt(1 + mA*mA*phi*phi);
69 outSampleX[i] = cos(phi)/c;
70 outSampleY[i] = sin(phi)/c;
71 outSampleZ[i] = -mA * phi/c;
std::uint16_t TTUInt16
16 bit unsigned integer
Spiral Unit in 3D for Jamoma DSP.
#define addAttribute(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom getter...
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.
double TTFloat64
64 bit floating point number
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]