19 #define thisTTClass TTAudioGraphOffset
20 #define thisTTClassName "audio.offset"
21 #define thisTTClassTags "audio, graph"
28 setAttributeValue(
TT(
"maxNumChannels"), arguments);
34 TTAudioGraphOffset::~TTAudioGraphOffset()
39 TTErr TTAudioGraphOffset::setOffset(
const TTValue& value)
56 TTSampleValuePtr inSample, outSample;
58 TTUInt16 vs = out.getVectorSizeAsInt();
60 if (inputChannelCount+mOffset >= 1){
62 out.setNumChannels(inputChannelCount+mOffset);
77 TTSampleValuePtr inSample, outSample;
79 TTUInt16 vs = out.getVectorSizeAsInt();
84 out.setNumChannels(inputChannelCount+mOffset);
87 for (
TTUInt16 i=0; i < mOffset; i++) {
105 TTSampleValuePtr inSample, outSample;
107 TTUInt16 vs = out.getVectorSizeAsInt();
110 out.setNumChannels(inputChannelCount);
std::uint16_t TTUInt16
16 bit unsigned integer
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
16-bit unsigned integer, range is 0 through 65,535.
#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...
offset≈: dynamically shift channels in multichannel signal
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...
#define addAttributeWithSetter(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom setter...
TTFloat64 TTSampleValue
A value representing a single audio sample.
[doxygenAppendixC_copyExample]