python-soundfile
python-soundfile copied to clipboard
OGG files outside [-1, 1]
trafficstars
I'm reading 100 OGG files, and they sometimes have range outside [-1, 1]
I'm seeing values around 1.42
Is the correct behavior to normalize to [-1, 1] or to clamp values to [-1, 1]?
Depends on your use case. But unless there is a level calibration somewhere, normalization is less likely to cause problems. A time-dependent level curve (limiter) might also be a good solution.