17 #ifndef __TT_SPLIT_H__
18 #define __TT_SPLIT_H__
35 mSplitChannels.resize(numArgs);
37 mSplitChannels[i] = args[i];
43 TTUInt16 numArgs = mSplitChannels.size();
47 args[i] = mSplitChannels[i];
64 out.setNumChannels(numChannels);
67 if (channelOffset >= inputChannelCount)
70 channelBound = channelOffset+numChannels-1;
71 if (channelBound >= inputChannelCount)
72 channelBound = inputChannelCount-1;
75 channelOffset += numChannels;
85 #endif // __TT_SPLIT_H__
std::uint16_t TTUInt16
16 bit unsigned integer
TTAudioObjectBase is the base class for all audio generating and processing objects in Jamoma DSP...
static TTErr copySubset(const TTAudioSignal &source, TTAudioSignal &dest, TTChannelCount startingChannel=0, TTChannelCount endingChannel=0)
Copy the audio from one signal into another.
size_type size() const noexcept
Return the number of elements.
The split≈ object takes a single input signal and splits it out into N output signals.
#define TTCLASS_SETUP(className)
TODO Doxygen: need more comments here.
TTErr setMaxNumChannels(const TTValue &newMaxNumChannels)
Attribute accessor.
The TTAudioSignal class represents N vectors of audio samples for M channels.
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...
void resize(size_type n)
Change the number of elements.
std::vector< TTChannelCount > mSplitChannels
The number of channels in each of N groups of signals.
[doxygenAppendixC_copyExample]
TTChannelCount numAudioSignals
The number of audio signal pointers which are actually valid.