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

Function normalize_cwt_lf0

utils/cwt.py:80–86  ·  view source on GitHub ↗
(f0, mean, std)

Source from the content-addressed store, hash-verified

78
79
80def normalize_cwt_lf0(f0, mean, std):
81 uv, cont_lf0_lpf = get_cont_lf0(f0)
82 cont_lf0_norm = (cont_lf0_lpf - mean) / std
83 Wavelet_lf0, scales = get_lf0_cwt(cont_lf0_norm)
84 Wavelet_lf0_norm, _, _ = norm_scale(Wavelet_lf0)
85
86 return Wavelet_lf0_norm
87
88
89def get_lf0_cwt_norm(f0s, mean, std):

Callers

nothing calls this directly

Calls 3

get_cont_lf0Function · 0.85
get_lf0_cwtFunction · 0.85
norm_scaleFunction · 0.85

Tested by

no test coverage detected