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

Function dynamic_range_compression

modules/hifigan/mel_utils.py:15–16  ·  view source on GitHub ↗
(x, C=1, clip_val=1e-5)

Source from the content-addressed store, hash-verified

13
14
15def dynamic_range_compression(x, C=1, clip_val=1e-5):
16 return np.log(np.clip(x, a_min=clip_val, a_max=None) * C)
17
18
19def dynamic_range_decompression(x, C=1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected