Skip to content

Commit d7c34b4

Browse files
committed
[scripts] helpers: formatting
1 parent c9baef1 commit d7c34b4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

helpers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
from pedalboard import load_plugin, VST3Plugin, AudioUnitPlugin
44

5+
56
def pprint_with_indent(data, indent=4):
67
output = pformat(data)
78
indented_output = (' ' * indent) + ('\n' + ' ' * indent).join(output.splitlines())
89
print(indented_output)
910

11+
1012
# Filter the locally installed audio plugins by the provided names
1113
#
1214
# Example usage:
@@ -27,14 +29,15 @@ def filter_installed_plugins_by_names(filters):
2729
if any(plugin_name in plugin_path.lower() for plugin_name in plugins_filter)
2830
]
2931

30-
print( f"Plugin filters: {filters}")
32+
print(f"Plugin filters: {filters}")
3133

3234
print(" Filtered VST3 Plugins:")
3335
pprint_with_indent(filtered_vst3_plugins, indent=4)
3436

3537
print(" Filtered AudioUnit Plugins:")
3638
pprint_with_indent(filtered_au_plugins, indent=4)
3739

40+
3841
# Compare the plugin parameters between the VST3 and AudioUnit versions of a plugin, showing the differences and similarities
3942
#
4043
# Example usage:
@@ -63,6 +66,7 @@ def compare_plugin_parameters(vst3_path, au_path):
6366
print(" Parameters only in AU:", only_in_au)
6467
print(" Parameters in both:", in_both)
6568

69+
6670
# Example usage:
6771
# Assuming synth_plugin.parameters['verb_wet'] is your parameter:
6872
# verb_wet = synth_plugin.parameters['verb_wet']
@@ -110,4 +114,3 @@ def print_parameter_properties(parameter):
110114
except AttributeError as e:
111115
# If the property does not exist, print an error message
112116
pprint(f"{property_name}: Property does not exist. Error: {e}")
113-

0 commit comments

Comments
 (0)