Closed nantonel closed 4 years ago
it would be more numerically stable to clip than to add a constant. Or else consider the log1p function.
Librosa clips to -80 dB by default https://github.com/librosa/librosa/blob/ceb862f6117f959bda0ecc04f6891ea2c80b0ce0/librosa/core/spectrum.py#L1447
I suppose this behaviour should be avoided:
Adding a small constant fixes the problem:
not sure this is the common practice though...