一个命令行工具,用于操作符号软件musescore的基于xml的*.mscx和*.mscz文件。
mscxyz的Python项目详细描述
mscxyz
操作符号软件musescore的基于xml的mscx文件。
安装
来自Github
git clone https://github.com/Josef-Friedrich/mscxyz.git
cd mscxyz
python setup.py install
来自PYPI
pip install mscxyz easy_install mscxyz
使用量
mscxyz
usage: mscx-manager [-h] [-V] [-b] [-c] [-d] [-g GENERAL_GLOB] [-m] [-v] {clean,meta,lyrics,rename,export,help} ... path A command line tool to manipulate the XML based "*.mscX" and "*.mscZ" files of the notation software MuseScore. positional arguments: path Path to a "*.mscx" file or a folder which contains "*.mscx" files. In conjunction with the subcommand "help" this positional parameter accepts the names of all other subcommands or the word "all". optional arguments: -h, --help show this help message and exit -V, --version show program's version number and exit -b, --backup Create a backup file. -c, --colorize Colorize the command line print statements. -d, --dry-run Simulate the actions. -g GENERAL_GLOB, --glob GENERAL_GLOB Handle only files which matches against Unix style glob patterns (e. g. "*.mscx", "* - *"). If you omit this option, the standard glob pattern "*.mscx" is used. -m, --mscore Open and save the XML file in MuseScore after manipulating the XML with lxml to avoid differences in the XML structure. -v, --verbose Make commands more verbose. You can specifiy multiple arguments (. g.: -vvv) to make the command more verbose. Subcommands: {clean,meta,lyrics,rename,export,help} Run "subcommand --help" for more informations. clean Clean and reset the formating of the "*.mscx" file meta Deal with meta data informations stored in the MuseScore file. lyrics Extract lyrics. Without any option this subcommand extracts all lyrics verses into separate mscx files. This generated mscx files contain only one verse. The old verse number is appended to the file name, e. g.: score_1.mscx. rename Rename the "*.mscx" files. export Export the scores to PDFs or to the specified extension. help Show help. Use “mscx-manager help all” to show help messages of all subcommands. Use “mscx-manager help <subcommand>” to show only help messages for the given subcommand.