34 if (args.size() != mNumPickChannels){
35 mNumPickChannels = args.size();
36 mPickChannels.resize(mNumPickChannels);
37 outputNeedsResize =
true;
41 mPickChannels[i] = args[i];
42 mPickChannels[i] = mPickChannels[i] - 1;
49 args.
resize(mNumPickChannels);
51 args[i] = mPickChannels[i] + 1;
59 TTSampleValuePtr inSample, outSample;
61 TTUInt16 vs = out.getVectorSizeAsInt();
64 if (outputNeedsResize){
66 out.setNumChannels(mNumPickChannels);
67 outputNeedsResize =
false;
73 currentPick = mPickChannels[i];
74 if (currentPick <= inputChannelCount) {
95 #endif // __TT_PICK_H__
bool TTBoolean
Boolean flag, same as Boolean on the Mac.
std::uint16_t TTUInt16
16 bit unsigned integer
TTAudioObjectBase is the base class for all audio generating and processing objects in Jamoma DSP...
#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.
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...
void resize(size_type n)
Change the number of elements.
TTFloat64 TTSampleValue
A value representing a single audio sample.
[doxygenAppendixC_copyExample]