abctools
v0.1.10
Published
Provides utilities for music repositories using the ABC music notation, including a CLI tool to compile .raw.abc files with directives from .abcconfig files.
Readme
abctools
abctools provides utilities for music repositories using the ABC music notation, including a CLI tool to generate .abc files from .raw.abc and .abcconfig files.
Installation
npm install -g abctoolsUsage
Export Command
To export .abc files from a source directory to an output directory:
abctools export <sourceDir> <outDir><sourceDir>: Directory containing .raw.abc and .abcconfig files<outDir>: Directory where generated .abc files will be written
How it works
- Typically, each folder in
<sourceDir>contains one.abcconfigfile. .abcconfigfiles only contain ABC directives (commands prefixed by%%, such as%%pagewidth) and comments (prefixed by%, e.g.% this is a comment).- These directives are applied to all
.raw.abcfiles in that folder. - Directives in a parent folder's, for example
.someParent.abcconfigcan be overridden by directives in.someChild.abcconfigfiles in child folders. This allows for hierarchical configuration. - The export process maintains the folder structure of
<sourceDir>and mirrors it in<outDir>. All generated.abcfiles will be placed in the corresponding subfolders of<outDir>.
Inputs
- One or more
.raw.abcfiles in<sourceDir> - One or more
.abcconfigfiles in<sourceDir>(merged if multiple, with child folder directives overriding parent ones)
Outputs
.abcfiles generated in<outDir>, preserving the directory structure of<sourceDir>
Example:
abctools export src/abc/ dist/abc/Help
To see available commands:
abctools --helpLicense
MIT
