Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FunAudioLLM/FunMusic
/ dynamic_range_compression_torch
Function
dynamic_range_compression_torch
inspiremusic/utils/audio_utils.py:71–72 ·
view source on GitHub ↗
(x, C=1, clip_val=1e-5)
Source
from the content-addressed store, hash-verified
69
70
71
def
dynamic_range_compression_torch(x, C=1, clip_val=1e-5):
72
return
torch.log(torch.clamp(x, min=clip_val) * C)
73
74
75
def
dynamic_range_decompression_torch(x, C=1):
Callers
1
spectral_normalize_torch
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected