Skip to content

Range check bugfix

Compare
Choose a tag to compare
@berndporr berndporr released this 26 Jan 16:58
· 32 commits to master since this release

The cutoff frequencies need to lie between [0...fs/2[ where the Nyquist frequency is not included. Since the filter uses the bilinear transform the Nyquist frequency translates to an infinite frequency in the analogue domain so creates coefficients being NaN. Any out-of-range cutoff triggers now an ArithmeticException.