| filtertype | = | Butterworth |
| passtype | = | Highpass |
| ripple | = | |
| order | = | 2 |
| samplerate | = | 44100 |
| corner1 | = | 7500 |
| corner2 | = | |
| adzero | = | |
| logmin | = | -24 |
Command line: /www/usr/fisher/helpers/mkfilter -Bu -Hp -o 2 -a 1.7006802721e-01 0.0000000000e+00
raw alpha1 = 0.1700680272
raw alpha2 = 0.1700680272
warped alpha1 = 0.1883397734
warped alpha2 = 0.1883397734
gain at dc : mag = 0.000000000e+00
gain at centre: mag = 1.546346995e+00 phase = 0.5000000000 pi
gain at hf : mag = 2.186864892e+00 phase = 0.0000000000 pi
S-plane zeros:
0.0000000000 + j 0.0000000000 2 times
S-plane poles:
-0.8367715658 + j -0.8367715658
-0.8367715658 + j 0.8367715658
Z-plane zeros:
1.0000000000 + j 0.0000000000 2 times
Z-plane poles:
0.2971864771 + j -0.3826352367
0.2971864771 + j 0.3826352367
Recurrence relation:
y[n] = ( 1 * x[n- 2])
+ ( -2 * x[n- 1])
+ ( 1 * x[n- 0])
+ ( -0.2347295266 * y[n- 2])
+ ( 0.5943729543 * y[n- 1])
/* Digital filter designed by mkfilter/mkshape/gencode A.J. Fisher
Command line: /www/usr/fisher/helpers/mkfilter -Bu -Hp -o 2 -a 1.7006802721e-01 0.0000000000e+00 -l */
#define NZEROS 2
#define NPOLES 2
#define GAIN 2.186864893e+00
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.2347295266 * yv[0]) + ( 0.5943729543 * 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: