19 #define thisTTClass TTAllpass
20 #define thisTTClassName "allpass"
21 #define thisTTClassTags "dspFilterLib, audio, processor"
23 #ifdef TT_PLATFORM_WIN
38 setAttributeValue(kTTSym_maxNumChannels, arguments);
39 setAttributeValue(
TT(
"filter"),
TT(
"allpass.1a"));
44 TTAllpass::~TTAllpass()
75 if (coefficients.
size() >= 1) {
78 alpha = coefficients[0];
84 if (coefficients.
size() >= 2) {
95 if (coefficients.
size() >= 2) {
106 if (coefficients.
size() >= 4) {
109 d1 = coefficients[0];
110 d2 = coefficients[1];
111 d3 = coefficients[2];
112 d4 = coefficients[3];
138 #pragma mark dsp routines
TTErr sendMessage(const TTSymbol name)
TODO: Document this function.
TTErr calculateValue(const TTFloat64 &x, TTFloat64 &y, TTPtrSizedInt data)
y = f(x) for a single value
TTChannelCount mMaxNumChannels
This is the maximum number of channels that can be guaranteed to work.
TTSymbol mFilter
Name of the filter to use.
size_type size() const noexcept
Return the number of elements.
TTErr calculate(const TTFloat64 &x, TTFloat64 &y)
Calculate a single sample of output for a single sample of input.
#define setProcessMethod(methodName)
A convenience macro to be used by subclasses for setting the process method.
TTErr setAttributeValue(const TTSymbol name, TTValue &value)
Set an attribute value for an object.
double TTFloat64
64 bit floating point number
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
TTErr clear()
This algorithm uses an IIR filter, meaning that it relies on feedback.
TTErr TTObjectBaseInstantiate(const TTSymbol className, TTObjectBasePtr *returnedObjectPtr, const TTValue arguments)
DEPRECATED.
#define addMessageWithArguments(name)
A convenience macro to be used by subclasses for registering messages.
TTErr process(TTAudioSignal &in, TTAudioSignal &out)
Process the input signal, resulting in an output signal.
A simple container for an array of TTAudioSignal pointers.
TTErr processAudio(TTAudioSignalArrayPtr inputs, TTAudioSignalArrayPtr outputs)
A standard audio processing method as used by Jamoma DSP objects.
TTAllpass is a generalized allpass filter wrapper
long TTPtrSizedInt
An integer that is the same size as a pointer.
Something went wrong, but what exactly is not known. Typically used for context-specific problems...
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...
#define addMessage(name)
A convenience macro to be used by subclasses for registering messages.
TTAudioObjectBasePtr mFilterObject
The actual filter object for mFilter.
[doxygenAppendixC_copyExample]
#define addUpdates(updateName)
An 'update' is a message sent to a subclass instance from its parent class.
TTUInt32 sr
Current sample rate being used by this object.