audioflux.utils.log_compress

audioflux.utils.log_compress(X, gamma=1.0)

log compression

Parameters
X: np.ndarray [shape=(…, fre,) or (…, fre, time)]

Input array

gamma: float

1/10/20/…

Returns
out: np.ndarray [shape=(…, fre,) or (…, fre, time)]

log compressed array