python-soundfile icon indicating copy to clipboard operation
python-soundfile copied to clipboard

OGG files outside [-1, 1]

Open turian opened this issue 4 years ago • 1 comments
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]?

turian avatar Mar 08 '21 00:03 turian

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.

bastibe avatar Mar 09 '21 12:03 bastibe