Jamoma API  0.6.0.a19
TTHalfband5 Class Reference

A 5-pole halfband lowpass/highpass filter built-up from allpass building blocks. More...

#include <TTHalfband5.h>

+ Inheritance diagram for TTHalfband5:
+ Collaboration diagram for TTHalfband5:

Protected Member Functions

virtual TTErr test (TTValue &returnedTestInfo)
 Unit Tests. More...
 

Protected Attributes

TTAudioObject mF0
 filter0 (in the upper path)
 
TTAudioObject mF1
 filter1 (in the lower path, second block)
 
TTAudioObject mDelay
 delay (in the lower path, first block)
 
TTAudioObject mR0
 resampling filter0 (in the upper path)
 
TTAudioObject mR1
 resampling filter1 (in the lower path, second block)
 
TTSampleVector mRSwitch
 resampling switch (so we know which path to calculate)
 
TTSampleVector mY0
 resampling path0 output (for each channel)
 
TTSampleVector mY1
 resampling path1 output (for each channel)
 
TTSymbol mMode
 Attribute: lowpass or highpass.
 

Detailed Description

A 5-pole halfband lowpass/highpass filter built-up from allpass building blocks.

Based on Multirate Signal Processing for Communication Systems, Chapter 10, Page 18.

Passband edge (i.e. Fc or -3db) at Fs/4, and stopband edge (-60db) at Fs*0.370.

Definition at line 30 of file TTHalfband5.h.

Member Function Documentation

TTErr TTHalfband5::test ( TTValue returnedTestInfo)
protectedvirtual

Unit Tests.

Parameters
returnedTestInfoUsed to return test information
Returns
TTErr error code if the method fails to execute, else kTTErrNone.

The following values are not necsessarily to be trusted. They were calculated from this filter unit itself at a time when the filter was assumed to work. As such, if this test fails in the future, it should be considered an indication that something has changed in the code or compiler that causes the calculated impulse response to differ from earlier results, but this test is not able to say anything meaningful about whether the old or new behaviour is to be trusted (or eventually none of them).

Reimplemented from TTAudioObjectBase.

Definition at line 20 of file TTHalfband5.test.cpp.

References TTAudioSignal::allocWithVectorSize(), TTAudioSignal::clear(), TTAudioSignal::mSampleVectors, TTAudioObjectBase::process(), TTObjectBaseInstantiate(), and TTObjectBaseRelease().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: