Jamoma API
0.6.0.a19
|
A 5-pole halfband lowpass/highpass filter built-up from allpass building blocks. More...
#include <TTHalfband5.h>
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. | |
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.
Unit Tests.
returnedTestInfo | Used to return test information |
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().