Skip to content

tool, sort preset in bank [addition] #5

@majjam

Description

@majjam

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.

bankSortPresets.zip

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 :

  1. Exportiern

  2. Sortieren

  3. Importieren

  4. Bearbeiten, Mastern usw. ...

  5. Exportieren,

  6. Zurücksortieren,

  7. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions