Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mlsacheck #30

Merged
merged 4 commits into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
set default alpha [skip ci]
  • Loading branch information
takenori-y committed Mar 29, 2023
commit ae28317b89e9cdb8ae49223d43f7c01e5e14f546
2 changes: 1 addition & 1 deletion diffsptk/core/b2mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MLSADigitalFilterCoefficientsToMelCepstrum(nn.Module):

"""

def __init__(self, cep_order, alpha):
def __init__(self, cep_order, alpha=0):
super(MLSADigitalFilterCoefficientsToMelCepstrum, self).__init__()

assert 0 <= cep_order
Expand Down
2 changes: 1 addition & 1 deletion diffsptk/core/freqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class FrequencyTransform(nn.Module):

"""

def __init__(self, in_order, out_order, alpha):
def __init__(self, in_order, out_order, alpha=0):
super(FrequencyTransform, self).__init__()

assert 0 <= in_order
Expand Down
2 changes: 1 addition & 1 deletion diffsptk/core/freqt2.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SecondOrderAllPassFrequencyTransform(nn.Module):

"""

def __init__(self, in_order, out_order, alpha, theta, n_fft=512):
def __init__(self, in_order, out_order, alpha=0, theta=0, n_fft=512):
super(SecondOrderAllPassFrequencyTransform, self).__init__()

assert 0 <= in_order
Expand Down
2 changes: 1 addition & 1 deletion diffsptk/core/ifreqt2.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SecondOrderAllPassInverseFrequencyTransform(nn.Module):

"""

def __init__(self, in_order, out_order, alpha, theta, n_fft=512):
def __init__(self, in_order, out_order, alpha=0, theta=0, n_fft=512):
super(SecondOrderAllPassInverseFrequencyTransform, self).__init__()

assert 0 <= in_order
Expand Down
2 changes: 1 addition & 1 deletion diffsptk/core/mc2b.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MelCepstrumToMLSADigitalFilterCoefficients(nn.Module):

"""

def __init__(self, cep_order, alpha):
def __init__(self, cep_order, alpha=0):
super(MelCepstrumToMLSADigitalFilterCoefficients, self).__init__()

assert 0 <= cep_order
Expand Down