Skip to content

Instantly share code, notes, and snippets.

@AndrewBelt
Last active October 9, 2018 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewBelt/fc2b3d52ccd87cfe6f2606ad178f2af5 to your computer and use it in GitHub Desktop.
Save AndrewBelt/fc2b3d52ccd87cfe6f2606ad178f2af5 to your computer and use it in GitHub Desktop.
# Audible Instruments Patch File Updater
# Migrates VCV patches from AudibleInstrumentsPreview to AudibleInstruments in bulk
# https://vcvrack.com/AudibleInstruments.html#preview
#
# usage:
# python AudibleInstrumentsUpdater.py 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