Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Audible Instruments Patch File Updater
# Migrates VCV patches from AudibleInstrumentsPreview to AudibleInstruments in bulk
# usage:
# python path/to/patches/*.vcv
import sys
import json
MIGRATED_SLUGS = ["Plaits", "Marbles"]
filenames = sys.argv[1:]
for filename in filenames:
with open(filename, 'r') as f:
data = json.load(f)
for module in data["modules"]:
if module["plugin"] == 'AudibleInstrumentsPreview' and module["model"] in MIGRATED_SLUGS:
module["plugin"] = "AudibleInstruments"
with open(filename, 'w') as f:
json.dump(data, f, indent=2)
print("Updated " + filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.