MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / __init__

Method __init__

modules/parallel_wavegan/models/source.py:25–36  ·  view source on GitHub ↗
(self, samp_rate, harmonic_num=0,
                 sine_amp=0.1, noise_std=0.003,
                 voiced_threshold=0,
                 flag_for_pulse=False)

Source from the content-addressed store, hash-verified

23 """
24
25 def __init__(self, samp_rate, harmonic_num=0,
26 sine_amp=0.1, noise_std=0.003,
27 voiced_threshold=0,
28 flag_for_pulse=False):
29 super(SineGen, self).__init__()
30 self.sine_amp = sine_amp
31 self.noise_std = noise_std
32 self.harmonic_num = harmonic_num
33 self.dim = self.harmonic_num + 1
34 self.sampling_rate = samp_rate
35 self.voiced_threshold = voiced_threshold
36 self.flag_for_pulse = flag_for_pulse
37
38 def _f02uv(self, f0):
39 # generate uv signal

Callers 5

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected