Musedown
This is a simple MuseScore CLI wrapper to easily build markdown files with music notation (and preserve for changes).
Installation
To install the gem directly:
gem install musedown
Or build directly from the source code:
rake install
Usage
The musedown CLI will use MuseScore's CLI (mscore) to convert your .mscz files into .png files and replace them in your markdown file.
To use:
- Embed the
.msczfile into your markdown like this:markdown  - Run
musedown:musedown build hello.md - And your markdown file will now be like this:
markdown And thehello-mscz-1.pngwill be automatically generated. You may keep thehello.mscz, perform changes and re-run the command to refresh the.pngfile.
Commands
To parse a file, simply run:
musedown build FILE_NAME
To route the output to another file:
musedown build examples/hello.md -o result.md
If mscore is not available, you can directly pass the executable with the -c flag:
musedown build examples/hello.md -o examples/output.md -c "/Applications/MuseScore\ 3.app/Contents/MacOS/mscore"
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/erickduran/musedown.
License
The gem is available as open source under the terms of the MIT License.