Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Loudness ISO 532-2 #244

Merged
merged 12 commits into from
Mar 12, 2025
Merged
1 change: 1 addition & 0 deletions doc/changelog.d/244.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: Loudness ISO 532-2
1 change: 1 addition & 0 deletions doc/source/api/psychoacoustics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ which are useful to study and assess sound quality.

LoudnessISO532_1_Stationary
LoudnessISO532_1_TimeVarying
LoudnessISO532_2
LoudnessANSI_S3_4
SpectralCentroid
Sharpness
Expand Down
2 changes: 2 additions & 0 deletions src/ansys/sound/core/psychoacoustics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from .loudness_ansi_s3_4 import LoudnessANSI_S3_4
from .loudness_iso_532_1_stationary import LoudnessISO532_1_Stationary
from .loudness_iso_532_1_time_varying import LoudnessISO532_1_TimeVarying
from .loudness_iso_532_2 import LoudnessISO532_2
from .prominence_ratio import ProminenceRatio
from .prominence_ratio_for_orders_over_time import ProminenceRatioForOrdersOverTime
from .roughness import Roughness
Expand All @@ -51,6 +52,7 @@
"PsychoacousticsParent",
"LoudnessISO532_1_Stationary",
"LoudnessISO532_1_TimeVarying",
"LoudnessISO532_2",
"LoudnessANSI_S3_4",
"ProminenceRatio",
"ToneToNoiseRatio",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@


class LoudnessISO532_1_Stationary(PsychoacousticsParent):
"""Computes ISO 532-1 loudness for stationary sounds.
"""Computes ISO 532-1:2017 loudness for stationary sounds.

This class computes the loudness of a signal according to the ISO 532-1 standard for stationary
sounds.
This class computes the loudness of a signal according to the ISO 532-1:2017 standard,
corresponding to the "Zwicker method", for stationary sounds.
"""

def __init__(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@


class LoudnessISO532_1_TimeVarying(PsychoacousticsParent):
"""Computes ISO 532-1 loudness for time-varying sounds.
"""Computes ISO 532-1:2017 loudness for time-varying sounds.

This class computes the loudness of a signal according to the ISO 532-1 standard for
time-varying sounds.
This class computes the loudness of a signal according to the ISO 532-1:2017 standard,
corresponding to the "Zwicker method", for time-varying sounds.
"""

def __init__(
Expand Down
Loading