We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf3c1be commit b1c2a40Copy full SHA for b1c2a40
1 file changed
audio_filters/equal_loudness_filter.py
@@ -2,7 +2,6 @@
2
3
from audio_filters.iir_filter import IIRFilter
4
5
-
6
# Coefficients from the "Original ReplayGain specification" (Equal Loudness Filter)
7
# - Yulewalk: 10th-order IIR
8
# - Butterworth: 2nd-order high-pass at 150 Hz
@@ -128,9 +127,11 @@ class EqualLoudnessFilter:
128
127
def __init__(self, samplerate: int = 44100) -> None:
129
if samplerate not in _REPLAYGAIN_COEFFS:
130
supported = ", ".join(str(sr) for sr in sorted(_REPLAYGAIN_COEFFS))
131
- raise ValueError(
132
- f"Unsupported samplerate {samplerate}. Supported samplerates: {supported}"
+ msg = (
+ f"Unsupported samplerate {samplerate}. "
+ f"Supported samplerates: {supported}"
133
)
134
+ raise ValueError(msg)
135
136
coeffs = _REPLAYGAIN_COEFFS[samplerate]
137
0 commit comments