Last active
October 9, 2018 10:00
-
-
Save AndrewBelt/fc2b3d52ccd87cfe6f2606ad178f2af5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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