File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33from audio_filters .iir_filter import IIRFilter
44
5-
65# Coefficients from the "Original ReplayGain specification" (Equal Loudness Filter)
76# - Yulewalk: 10th-order IIR
87# - Butterworth: 2nd-order high-pass at 150 Hz
@@ -128,9 +127,11 @@ class EqualLoudnessFilter:
128127 def __init__ (self , samplerate : int = 44100 ) -> None :
129128 if samplerate not in _REPLAYGAIN_COEFFS :
130129 supported = ", " .join (str (sr ) for sr in sorted (_REPLAYGAIN_COEFFS ))
131- raise ValueError (
132- f"Unsupported samplerate { samplerate } . Supported samplerates: { supported } "
130+ msg = (
131+ f"Unsupported samplerate { samplerate } . "
132+ f"Supported samplerates: { supported } "
133133 )
134+ raise ValueError (msg )
134135
135136 coeffs = _REPLAYGAIN_COEFFS [samplerate ]
136137
You can’t perform that action at this time.
0 commit comments