| filtertype | = | Butterworth |
| passtype | = | Lowpass |
| ripple | = | |
| order | = | 2 |
| samplerate | = | 44100 |
| corner1 | = | 1500 |
| corner2 | = | |
| adzero | = | |
| logmin | = | -24 |
Command line: /www/usr/fisher/helpers/mkfilter -Bu -Lp -o 2 -a 3.4013605442e-02 0.0000000000e+00
raw alpha1 = 0.0340136054
raw alpha2 = 0.0340136054
warped alpha1 = 0.0341436597
warped alpha2 = 0.0341436597
gain at dc : mag = 1.010963129e+02 phase = 0.0000000000 pi
gain at centre: mag = 7.148588839e+01 phase = -0.5000000000 pi
gain at hf : mag = 0.000000000e+00
S-plane zeros:
S-plane poles:
-0.1516962833 + j 0.1516962833
-0.1516962833 + j -0.1516962833
Z-plane zeros:
-1.0000000000 + j 0.0000000000 2 times
Z-plane poles:
0.8498042292 + j 0.1304126556
0.8498042292 + j -0.1304126556
Recurrence relation:
y[n] = ( 1 * x[n- 2])
+ ( 2 * x[n- 1])
+ ( 1 * x[n- 0])
+ ( -0.7391746887 * y[n- 2])
+ ( 1.6996084584 * y[n- 1])
/* Digital filter designed by mkfilter/mkshape/gencode A.J. Fisher
Command line: /www/usr/fisher/helpers/mkfilter -Bu -Lp -o 2 -a 3.4013605442e-02 0.0000000000e+00 -l */
#define NZEROS 2
#define NPOLES 2
#define GAIN 1.010963129e+02
static float xv[NZEROS+1], yv[NPOLES+1];
static void filterloop()
{ for (;;)
{ xv[0] = xv[1]; xv[1] = xv[2];
xv[2] = next input value / GAIN;
yv[0] = yv[1]; yv[1] = yv[2];
yv[2] = (xv[0] + xv[2]) + 2 * xv[1]
+ ( -0.7391746887 * yv[0]) + ( 1.6996084584 * yv[1]);
next output value = yv[2];
}
}
For an expanded view, enter frequency limits (as a fraction of the sampling rate) here:
For a view on a different scale, enter upper time limit (integer number of samples) here: