Skip to content

Conversation

@Gautzilla
Copy link
Contributor

This PR fixes the audio normalization util functions.

There was a bug where trying to normalize a series of 0. with a PEAK normalization or computing the z-score of a constant series (with std=0) would try to divide all values by zero.

With the changes from this PR, the divider is computed first, then the division is done only if the divider is not 0.

@Gautzilla Gautzilla requested a review from mathieudpnt January 26, 2026 11:00
@Gautzilla Gautzilla self-assigned this Jan 26, 2026
@Gautzilla Gautzilla added the bug Something isn't working label Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant