Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
ef7c55ce
"docs/en/git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "a364e6cad24119e036e8cd4aa8dcc24fbb84ee6d"
Unverified
Commit
ef7c55ce
authored
Nov 19, 2019
by
Vincent QB
Committed by
GitHub
Nov 19, 2019
Browse files
decorating equalizer_biquad too. (#342)
parent
f5f79d1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchaudio/functional.py
torchaudio/functional.py
+1
-1
No files found.
torchaudio/functional.py
View file @
ef7c55ce
...
@@ -725,7 +725,7 @@ def lowpass_biquad(waveform, sample_rate, cutoff_freq, Q=0.707):
...
@@ -725,7 +725,7 @@ def lowpass_biquad(waveform, sample_rate, cutoff_freq, Q=0.707):
return
biquad
(
waveform
,
b0
,
b1
,
b2
,
a0
,
a1
,
a2
)
return
biquad
(
waveform
,
b0
,
b1
,
b2
,
a0
,
a1
,
a2
)
#
@torch.jit.script
@
torch
.
jit
.
script
def
equalizer_biquad
(
waveform
,
sample_rate
,
center_freq
,
gain
,
Q
=
0.707
):
def
equalizer_biquad
(
waveform
,
sample_rate
,
center_freq
,
gain
,
Q
=
0.707
):
# type: (Tensor, int, float, float, float) -> Tensor
# type: (Tensor, int, float, float, float) -> Tensor
r
"""Designs biquad peaking equalizer filter and performs filtering. Similar to SoX implementation.
r
"""Designs biquad peaking equalizer filter and performs filtering. Similar to SoX implementation.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment