19 #define thisTTClass Gear2D
20 #define thisTTClassName "gear.2D"
21 #define thisTTClassTags "audio, trajectory, 2D"
52 if (numOutputChannels != 2) {
55 out.setNumChannels(v);
59 TTUInt16 vs = in0.getVectorSizeAsInt();
68 for (
int i=0; i<vs; i++) {
70 phi = inSampleX[i] *
kTTPi;
71 r = temp1 * tanh(mB * sin(mC * phi));
72 outSampleX[i] = r * sin(phi);
73 outSampleY[i] = r * cos(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.
Gear Curve Function Unit in 2D for Jamoma DSP.
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...
TTFOUNDATION_EXPORT const TTFloat64 kTTPi
[doxygenAppendixC_constExample]
[doxygenAppendixC_copyExample]