Skip to content

Commit

Permalink
Merge pull request #9 from TheCacophonyProject/hp-40
Browse files Browse the repository at this point in the history
up to 40hz
  • Loading branch information
gferraro authored Jul 23, 2024
2 parents 9a82d64 + d529907 commit 3fb95c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdmfilter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl PDMFilter {
}
pub fn init(&mut self) {
let lp_hz: f32 = self.fs as f32 / 2.0;
let hp_hz: f32 = 20.0;
let hp_hz: f32 = 40.0;
if lp_hz != 0.0 {
self.lp_alpha = (lp_hz * 256.0 / (lp_hz + self.fs as f32 / (2.0 * PI))) as u32;
}
Expand Down

0 comments on commit 3fb95c2

Please sign in to comment.