Skip to content

Commit f38447e

Browse files
committed
Add operator= to dynamic_smoother
1 parent c09fda1 commit f38447e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

q_lib/include/q/fx/lowpass.hpp

+6
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ namespace cycfi::q
241241
return low2;
242242
}
243243

244+
dynamic_smoother& operator=(float y)
245+
{
246+
low1 = low2 = y;
247+
return *this;
248+
}
249+
244250
void base_frequency(frequency base, float sps)
245251
{
246252
wc = as_double(base) / sps;

0 commit comments

Comments
 (0)