Skip to content

Commit

Permalink
Check if ramp_time exists before trying to remove it
Browse files Browse the repository at this point in the history
  • Loading branch information
HEnquist committed Oct 10, 2024
1 parent 03486ad commit 80e58ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/legacy_config_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def _modify_loundness_filters(config):
if "filters" in config:
for name, params in config["filters"].items():
if params["type"] == "Loudness":
del params["parameters"]["ramp_time"]
if "ramp_time" in params["parameters"]:
del params["parameters"]["ramp_time"]
params["parameters"]["fader"] = "Main"
params["parameters"]["attenuate_mid"] = False

Expand Down

0 comments on commit 80e58ee

Please sign in to comment.