Skip to content

Commit

Permalink
Update Python CARFAC to v2 with two_cap IHC default.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 583155314
  • Loading branch information
CARFAC Team authored and copybara-github committed Nov 16, 2023
1 parent 71c405e commit 402011e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions python/np/carfac.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,14 +1011,17 @@ class CarfacParams:
n_ears: int


def design_carfac(n_ears: int = 1,
fs: float = 22050,
car_params: Optional[CarParams] = None,
agc_params: Optional[AgcParams] = None,
ihc_params: Optional[Union[IhcJustHwrParams, IhcOneCapParams,
IhcTwoCapParams]] = None,
one_cap: bool = True,
just_hwr: bool = False) -> CarfacParams:
def design_carfac(
n_ears: int = 1,
fs: float = 22050,
car_params: Optional[CarParams] = None,
agc_params: Optional[AgcParams] = None,
ihc_params: Optional[
Union[IhcJustHwrParams, IhcOneCapParams, IhcTwoCapParams]
] = None,
one_cap: bool = False,
just_hwr: bool = False,
) -> CarfacParams:
"""This function designs the CARFAC filterbank.
CARFAC is a Cascade of Asymmetric Resonators with Fast-Acting Compression);
Expand Down

0 comments on commit 402011e

Please sign in to comment.