π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Update pedalboard.py
Peter Sobot4cae9871b6dc
diff --git a/pedalboard/pedalboard.py b/pedalboard/pedalboard.pyindex f66e6f3..0d79713 100644--- a/pedalboard/pedalboard.py+++ b/pedalboard/pedalboard.py@@ -466,7 +466,11 @@ def to_python_parameter_name(parameter: _AudioProcessorParameter) -> Optional[stif parameter.label and not parameter.label.startswith(":"):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 "_" for c in name]+ name = [+ c+ if (c.isalpha() or c.isnumeric()) and c.isprintable() and ord(c) < 128 else "_"+ for c in name+ ]# Remove any double-underscores:name = [a for a, b in zip(name, name[1:]) if a != b or b != "_"] + [name[-1]]# Remove any leading or trailing underscores: