Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Formatting.

Peter Sobotfe3fc7a42268
diff --git a/tests/test_bitcrush.py b/tests/test_bitcrush.py
index fccf8e6..e0ae2c5 100644
--- a/tests/test_bitcrush.py
+++ b/tests/test_bitcrush.py
@@ -26,7 +26,9 @@ from .utils import generate_sine_at
@pytest.mark.parametrize("sample_rate", [22050, 44100, 48000])
@pytest.mark.parametrize("num_channels", [1, 2])
def test_bitcrush(bit_depth: float, fundamental_hz: float, sample_rate: float, num_channels: int):
- sine_wave = generate_sine_at(sample_rate, fundamental_hz, num_seconds=0.1, num_channels=num_channels)
+ sine_wave = generate_sine_at(
+ sample_rate, fundamental_hz, num_seconds=0.1, num_channels=num_channels
+ )
plugin = Bitcrush(bit_depth)
output = plugin.process(sine_wave, sample_rate)
@@ -35,4 +37,3 @@ def test_bitcrush(bit_depth: float, fundamental_hz: float, sample_rate: float, n
expected_output = np.around(sine_wave.astype(np.float64) * (2 ** bit_depth)) / (2 ** bit_depth)
np.testing.assert_allclose(output, expected_output, atol=0.01)
-