-
Notifications
You must be signed in to change notification settings - Fork 0
tool, sort preset in bank [addition] #5
Description
Hi,
ich hatte für den Bank-Austausch mit Euch ein kleines sorting Tool geschrieben, welches die Presets in einer Bank sortiert, ein undo file erzeugt und die Sortierung wieder zurückschreiben kann.
Falls Ihr so etwas gebrauchen könnt, dürft Ihr es hier gerne hier im Repo ablegen.
py .\bankSortPresets.py --help
usage: bankSortPresets.py [-h] [--order {asc,desc}] [--undo] input_filename [output_filename]
Sort presets in a C15 Bank file alphabetically.
positional arguments:
input_filename The input bank(xml) file.
output_filename The output bank(xml) file. Defaults to the input file with "_sorted" appended.
options:
-h, --help show this help message and exit
--order {asc,desc} The sort order. Can be "asc" for ascending (default) or "desc" for descending.
--undo Undo the last sort operation.
Usage examples: py bankSortPresets.py input .xml --order asc python bankSortPresets.py input.xml output.xml --order desc
py bankSortPresets.py input_sorted.xml --undo Undo: The --undo option allows you to reorder the sorted list to its
initial state. It uses an index file (with the extension .idx) that is created during the sort operation. This file
restores the original order of the presets. The input file (foo_sorted.xml) will be overwritten.
Vorgehensweise :
-
Exportiern
-
Sortieren
-
Importieren
-
Bearbeiten, Mastern usw. ...
-
Exportieren,
-
Zurücksortieren,
-
Importieren, => Ürsprünglich Reihenfolge mit den Bearbeitungen in der Bank
Bank sortieren :
"py bankSortPresets.py '.\bank.xml'"
=> bank_sorted.xml wird generiert (und ein index_file)
..._sorted.xml kann importiert und übersichtlich bearbeitet werden.
undo :
.._sorted exportieren
"py bankSortPresets.py '.\bank_sorted.xml' --undo"
_sorted hat die Reihenfolge wie die urspünglich Bank - alte Reihenfolge ist wiederhergestellt.