A vital preset optimizer
- main.py is launched.
- main.py calls gui.py
- gui.py finishes and returns the User Input variables to main.py
- main.py loops through all the files in original_presets and extracts the Processing variables
- main.py either sends a dictionary (https://pastebin.com/czG8igxq) for all of the files, or sends them one at a time, containing both User Input variables and Processing variables to processing.py
- processing.py processes the files and either returns the to main.py or sends them off to optimized_presets
file_path // string // The file path of the preset
disabled_prefixes // list // A list of the disabled prefixes
file_data // dict // The entire preset file data in dictionary form
Stick to using these for all user inputs so our programs can work together
round_amount // int // The amount each parameter/knob is rounded too.
pretty_file // bool // Will pretty print the new JSON file for easy reading if true
round_lfos // bool // Will round LFO's if true
delete_unused // bool // Enables deleting of all unused data from prefixes in disabled_prefixes if true
Where you put the presets you want optimized, currently contains the april 2021 free patch sharing thread bank
Where the presets go after optimization
Contains general use data, such as a list of available prefixes
The heart of the opperation
Contains the GUI of the program and is the only part that the user ineracts with
Contains the guts and actual functionality of the program.