diff --git a/lib/__init__.py b/lib/__init__.py index 467f4d7..1cfc20a 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -53,9 +53,9 @@ def c_render(cascade, precision=4096): def c_render2(xs, cascade, phase=False): """c_render optimized and specifically for first/second-order filters""" if phase: - return c_render(xs, cascade, mode='phase') + return c_render3(xs, cascade, mode='phase') else: - return c_render(xs, cascade, mode='magnitude') + return c_render3(xs, cascade, mode='magnitude') def c_render3(xs, cascade, mode='magnitude'): """c_render optimized and specifically for first/second-order filters""" @@ -71,7 +71,7 @@ def c_render3(xs, cascade, mode='magnitude'): elif mode == 'phase' or mode == 'group delay': fmt = '-arctan2(imag({0}), real({0}))' # gross else: - raise Exception("c_render(): unknown mode: {}".format(mode)) + raise Exception("c_render3(): unknown mode: {}".format(mode)) ys = np.zeros(len(xs)) for f in cascade: diff --git a/lib/piir.py b/lib/piir.py index fc4d1d9..f6d8195 100644 --- a/lib/piir.py +++ b/lib/piir.py @@ -4,6 +4,8 @@ import numpy as np # coefficients via https://gist.github.com/notwa/3be345efb6c97d757398 # which is a port of http://ldesoras.free.fr/prod.html#src_hiir +# i don't think my terminology is correct. + halfband_c = {} halfband_c['16,0.1'] = [