Skip to content

Commit

Permalink
Add operator= to dynamic_smoother
Browse files Browse the repository at this point in the history
  • Loading branch information
djowel committed Oct 27, 2024
1 parent c09fda1 commit f38447e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions q_lib/include/q/fx/lowpass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ namespace cycfi::q
return low2;
}

dynamic_smoother& operator=(float y)
{
low1 = low2 = y;
return *this;
}

void base_frequency(frequency base, float sps)
{
wc = as_double(base) / sps;
Expand Down

0 comments on commit f38447e

Please sign in to comment.