52 b[0] = 0.060111378492136;
53 b[1] = -0.257323420830598;
54 b[2] = 0.420583503165928;
55 b[3] = -0.222750785197418;
56 b[4] = -0.222750785197418;
57 b[5] = 0.420583503165928;
58 b[6] = -0.257323420830598;
59 b[7] = 0.060111378492136;
62 a[1] = -5.667654878577432;
63 a[2] = 14.062452278088417;
64 a[3] = -19.737303840697738;
65 a[4] = 16.889698874608641;
66 a[5] = -8.796600612325928;
67 a[6] = 2.577553446979888;
68 a[7] = -0.326903916815751;
74 b[ 0 ] = 0.10133306904918619;
75 b[ 1 ] = -0.2447523353702363;
76 b[ 2 ] = 0.33622528590120965;
77 b[ 3 ] = -0.13936581560633518;
78 b[ 4 ] = -0.13936581560633382;
79 b[ 5 ] = 0.3362252859012087;
80 b[ 6 ] = -0.2447523353702358;
81 b[ 7 ] = 0.10133306904918594;
84 a[ 1 ] = -3.9035590278139427;
85 a[ 2 ] = 7.5299379980621133;
86 a[ 3 ] = -8.6890803793177511;
87 a[ 4 ] = 6.4578667096099176;
88 a[ 5 ] = -3.0242979431223631;
89 a[ 6 ] = 0.83043385136748382;
90 a[ 7 ] = -0.094420800837809335;
96 b[ 0 ] = 0.20898944260075727;
97 b[ 1 ] = 0.40011234879814367;
98 b[ 2 ] = 0.819741973072733;
99 b[ 3 ] = 1.0087419911682323;
100 b[ 4 ] = 1.0087419911682325;
101 b[ 5 ] = 0.81974197307273156;
102 b[ 6 ] = 0.40011234879814295;
103 b[ 7 ] = 0.20898944260075661;
106 a[ 1 ] = 0.0077331184208358217;
107 a[ 2 ] = 1.9853971155964376;
108 a[ 3 ] = 0.19296739275341004;
109 a[ 4 ] = 1.2330748872852182;
110 a[ 5 ] = 0.18705341389316466;
111 a[ 6 ] = 0.23659265908013868;
112 a[ 7 ] = 0.032352924250533946;
117 std::cerr <<
"WARNING: Decimator::initialise: unsupported decimation factor " <<
m_decFactor <<
", no antialiasing filter will be used" << std::endl;
157 for (
int i = 0; i < length; i++ ) {
159 Input = (double)src[ i ];
177 for (
int i = 0; i < length; i++ ) {
179 Input = (double)src[ i ];
void process(const double *src, double *dst)
Process inLength samples (as supplied to constructor) from src and write inLength / decFactor samples...
Decimator(int inLength, int decFactor)
Construct a Decimator to operate on input blocks of length inLength, with decimation factor decFactor...
void doAntiAlias(const double *src, double *dst, int length)
void initialise(int inLength, int decFactor)