23 #define thisTTClass TTAudioObjectBaseArray
24 #define thisTTClassName "array"
25 #define thisTTClassTags "dspLibrary, audio, array"
30 mInputChannelSignal(NULL),
31 mOutputChannelSignal(NULL)
44 setAttributeValue(kTTSym_maxNumChannels, initialMaxNumChannels);
45 setAttributeValue(
"class",
"gain");
50 TTAudioObjectBaseArray::~TTAudioObjectBaseArray()
94 for (
int i=0; i<
mSize; i++)
121 if (arguments.
size() < 3)
124 attrName = arguments[1];
131 err =
mInstances[target]->setAttributeValue(attrName, attrValue);
136 if (arguments.
size() < 2)
139 attrName = arguments[0];
146 for (
int i=0; i<
mSize; i++)
161 TTUInt16 vs = in.getVectorSizeAsInt();
TTFOUNDATION_EXPORT TTDataInfoPtr ttDataTypeInfo[kNumTTDataTypes]
An array, indexed by values from TTDataType, containing information about those data types...
std::uint16_t TTUInt16
16 bit unsigned integer
TTErr TTObjectBaseRelease(TTObjectBasePtr *anObject)
DEPRECATED.
void copyFrom(const TTValue &obj, TTUInt16 index)
Copy a value starting from an index until the last element.
TTChannelCount mMaxNumChannels
This is the maximum number of channels that can be guaranteed to work.
TTUInt16 mSize
The number of instances in the array.
TTSymbol mClass
The name of the object we will instantiate in the array.
size_type size() const noexcept
Return the number of elements.
The wrong number of values were passed to a method or attribute.
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
TTAudioSignalPtr mInputChannelSignal
Signal used within the process method for passing to individual instances.
TTErr setAttributeValue(const TTSymbol name, TTValue &value)
Set an attribute value for an object.
Wrapper for an array of audio objects.
TTErr setSize(const TTValueRef newSize)
16-bit unsigned integer, range is 0 through 65,535.
void * TTPtr
A generic pointer.
TTErr setVector(const TTChannelCount channel, const TTUInt16 vectorSize, const TTSampleValuePtr newVector)
[doxygenAppendixC_methodExample]
TTAudioObjectBaseVector mInstances
The actual vector containing object instance pointers.
TTErr set(TTValue &arguments, TTValue &)
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
Process audio.
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
TTErr TTObjectBaseInstantiate(const TTSymbol className, TTObjectBasePtr *returnedObjectPtr, const TTValue arguments)
DEPRECATED.
TTErr updateMaxNumChannels(const TTValue &oldMaxNumChannels, TTValue &)
Update the maximum number of channels that the array will be able to process.
static TTChannelCount getMinChannelCount(const TTAudioSignal &signal1, const TTAudioSignal &signal2)
Use this class method to determine the least number of channels the two signals have in common...
The TTAudioSignal class represents N vectors of audio samples for M channels.
#define addMessageWithArguments(name)
A convenience macro to be used by subclasses for registering messages.
TTSampleValue ** mSampleVectors
An array of pointers to the first sample in each vector. Declared Public for fast access...
std::int32_t TTInt32
32 bit signed integer
TTUInt16 TTChannelCount
Data type used when counting the number of channels in multi-channel audio signals and processes...
TTErr setClass(const TTValueRef newClass)
A simple container for an array of TTAudioSignal pointers.
void clear()
Clear all values from the vector, leaving with size of 0.
TTAudioSignalPtr mOutputChannelSignal
Signal used within the process method for passing to individual instances.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
#define addAttributeWithSetter(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom setter...
[doxygenAppendixC_copyExample]
#define addUpdates(updateName)
An 'update' is a message sent to a subclass instance from its parent class.