Skip to content

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

Update pedalboard.py

Peter Sobot39107a62a45e
diff --git a/pedalboard/pedalboard.py b/pedalboard/pedalboard.py
index 0d79713..0a6d4c3 100644
--- a/pedalboard/pedalboard.py
+++ b/pedalboard/pedalboard.py
@@ -467,8 +467,7 @@ def to_python_parameter_name(parameter: _AudioProcessorParameter) -> Optional[st
name = "{} {}".format(name, parameter.label.lower())
# Replace all non-alphanumeric characters with underscores
name = [
- c
- if (c.isalpha() or c.isnumeric()) and c.isprintable() and ord(c) < 128 else "_"
+ c if (c.isalpha() or c.isnumeric()) and c.isprintable() and ord(c) < 128 else "_"
for c in name
]
# Remove any double-underscores: