Skip to content

Commit

Permalink
fix: initial condition for limiter gain
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyololicon committed Apr 1, 2024
1 parent e068e08 commit 38d1c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchcomp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ def limiter_gain(
lt = db2amp(threshold)
x_peak = compressor_core(x.abs(), zi, rt, at)
f = F.relu(1 - lt / x_peak).neg() + 1
return compressor_core(f, zi, at, rt)
return compressor_core(f, torch.ones_like(zi), at, rt)

0 comments on commit 38d1c9a

Please sign in to comment.