Skip to content

Commit

Permalink
Fix REW Parsing of Notch filters. Fixes #42
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Salonen <[email protected]>
  • Loading branch information
ssalonen committed Mar 2, 2023
1 parent 0ce017c commit a5ebc1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hifiberrydsp/parser/rew.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def readfilters(filename, fs=48000):
fc = float(parts[5])
gain = float(parts[8])
q = float(parts[11])
logging.info("Filter EQ fc=%s, q=%s, gaion=%s, fs=%s",
logging.info("Filter EQ fc=%s, q=%s, gain=%s, fs=%s",
fc, q, gain, fs)
filters.append(
Biquad.peaking_eq(fc, q, gain, fs))
Expand Down Expand Up @@ -109,7 +109,7 @@ def readfilters(filename, fs=48000):
parts[4] == "Fc" and parts[6] == "Hz":
fc = float(parts[5])
q = 0.707
logging.info("Filter NO fc=%s", fc, db)
logging.info("Filter NO fc=%s q=%s", fc, q)
filters.append(
Biquad.notch(fc, q, fs))

Expand Down

0 comments on commit a5ebc1f

Please sign in to comment.