Skip to content

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

Reformat with older Black.

Peter Sobotbcb70f9c7e9c
diff --git a/pedalboard/pedalboard.py b/pedalboard/pedalboard.py
index 86dee68..d7b792e 100644
--- a/pedalboard/pedalboard.py
+++ b/pedalboard/pedalboard.py
@@ -628,6 +628,7 @@ try:
super().__init__(path_to_plugin_file)
self.__set_initial_parameter_values__(parameter_values)
+
except ImportError:
# We may be on a system that doesn't have native VST3Plugin support.
pass
@@ -644,6 +645,7 @@ try:
super().__init__(path_to_plugin_file)
self.__set_initial_parameter_values__(parameter_values)
+
except ImportError:
# We may be on a system that doesn't have native AudioUnitPlugin support.
# (i.e.: any platform that's not macOS.)
diff --git a/tests/test_filters.py b/tests/test_filters.py
index c12a659..55627e4 100644
--- a/tests/test_filters.py
+++ b/tests/test_filters.py
@@ -21,7 +21,7 @@ from pedalboard import HighpassFilter, LowpassFilter
def rms(x: np.ndarray) -> float:
- return np.sqrt(np.mean(x**2))
+ return np.sqrt(np.mean(x ** 2))
def normalized(x: np.ndarray) -> np.ndarray: