eq: use 1p1z highpass
This commit is contained in:
parent
926550bac7
commit
be7d472414
2 changed files with 15 additions and 4 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 1.28.1
|
||||
|
||||
- bug fixes
|
||||
- eq: `highpass` filter not working as expected with `poles` set
|
||||
|
||||
## 1.28.0
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -173,10 +173,16 @@ function biquadResponse(options, frequencyHz, filterResponse) {
|
|||
break
|
||||
|
||||
case 'highpass-1p':
|
||||
b1 = -Math.exp(-2.0 * Math.PI * (0.5 - frequency / Fs))
|
||||
a0 = 1.0 + b1
|
||||
b1 = -b1
|
||||
a1 = a2 = b2 = 0
|
||||
// b1 = -Math.exp(-2.0 * Math.PI * (0.5 - frequency / Fs))
|
||||
// a0 = 1.0 + b1
|
||||
// b1 = -b1
|
||||
// a1 = a2 = b2 = 0
|
||||
// using highpass 1p1z instead
|
||||
norm = 1 / (K + 1);
|
||||
a0 = norm;
|
||||
a1 = -norm;
|
||||
b1 = (K - 1) * norm;
|
||||
a2 = b2 = 0;
|
||||
break
|
||||
|
||||
case 'bandpass':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue