pyloudnorm icon indicating copy to clipboard operation
pyloudnorm copied to clipboard

Input value range for data?

Open Franky1 opened this issue 1 year ago • 1 comments

Wave audiofiles are often created with int16 audio data, but pyloudnorm seems to require float arrays as input for the data arguments.

How do the float values have to be scaled respectively what is the maximum numerical range for the full scale so that the calculations by pyloudnorm make sense?

Is it [+1.0; -1.0] in float?

Franky1 avatar Dec 12 '23 14:12 Franky1

Yes, the -1 to +1 range is common for float32 audio arrays. It is common to process audio in float32 even though the storage format is something different (e.g. int16 wav)

iver56 avatar Jan 11 '24 11:01 iver56