Skip to content

Commit

Permalink
Reduce FIR window length
Browse files Browse the repository at this point in the history
It doesn't need to "sound" good, only calculate things
accurately enough
  • Loading branch information
nocarryr committed Jun 29, 2024
1 parent 24b8881 commit 6b1bcb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lupy/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def calc_tp_fir_win(upsample_factor: int) -> Float1dArray:
half_len = 10 * max_rate
window = cast(str, ('kaiser', 5.0))
h = signal.firwin(
2 * half_len + 1,
half_len + 1, # len == 41 with upsample factor of 4
f_c,
window=window
)
Expand Down

0 comments on commit 6b1bcb8

Please sign in to comment.