18 #define thisTTClass PlugtasticOutput
19 #define thisTTClassName "plugtastic.output"
20 #define thisTTClassTags "audio, output, plugtastic"
30 setAttributeValue(
TT(
"linearGain"), 1.0);
35 PlugtasticOutput::~PlugtasticOutput()
79 for (channel=0; channel<numchannels; channel++) {
82 vs = in.getVectorSizeAsInt();
85 *outSample++ = (*inSample++) *
mGain;
TTFloat64 TTDecibelsToLinearGain(TTFloat64 value)
Convert decibels into linear ampliude.
TTErr(TTObjectBase::* TTSetterMethod)(const TTAttribute &attribute, const TTValue &value)
A type that can be used to store a pointer to a message for an object.
std::uint16_t TTUInt16
16 bit unsigned integer
TTFloat64 TTLinearGainToDecibels(const TTFloat64 value)
Convert linear amplitude into deciBels.
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
TTErr getMidiGain(TTValue &value)
retreive the gain in midi units.
TTFloat64 TTLinearGainToMidi(TTFloat64 value)
Convert linear amplitude into midi.
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
A standard audio processing method as used by Jamoma DSP objects.
TTErr setMidiGain(const TTValue &newValue)
set the gain using midi units.
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.
TTFloat64 mGain
linear gain to be applied to the input signal
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...
TTErr setGain(const TTValue &newValue)
setter for converting gain input from db to linear.
TTFloat64 TTMidiToLinearGain(TTFloat64 value)
Convert midi into linear amplitude.
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...
TTErr getGain(TTValue &value)
getter for converting gain input from linear to db.
TTErr(TTObjectBase::* TTGetterMethod)(const TTAttribute &attribute, TTValue &value)
A type that can be used to store a pointer to a message for an object.
Manage output signals from Plugtastic.
TTFloat64 TTSampleValue
A value representing a single audio sample.
[doxygenAppendixC_copyExample]