免费打谱软件选 LilyPond 还是 MuseScore?
LilyPond 和 MuseScore 都是免费开源的打谱软件,但是它们有不同的打谱逻辑:前者使用代码定义曲谱,后者所见即所得。MuseScore 内置了 MIDI 播放能力,并且新版本支持 VST 音色插件。而 LilyPond 则没有提供播放 MIDI 的功能,但它可以生成 MIDI 文件。
Lily Pond 是一个程序化打谱软件,可以将曲谱代码转译为 PNG 图片、PDF 文档、MIDI 文件,也可以配合 Frescobaldi 图形界面工具进行打谱,使用 Quick Insert 工具替代手写代码。Frescobaldi 支持与 PDF、SVG 矢量图形的交互,点击图片上的音符即可以定位到曲谱代码。虽然也支持 MIDI 捕捉,但目前不支持节拍,也不支持实时回放,比较不够人性化。

配置 Frescobaldi:
- Edit → Perferences → LilyPond Preferences 指定 LilyPond 程序路径。
- LilyPond → Automatic Engrave 勾选此项以自动将曲谱的修改更新到图像。
- Tools → Viewers → Music View 默认的 PDF 视图,如果使用 SVG 就选择 SVG Viewer。
- Tools → Codding → Quick Insert 勾选此项以打开曲谱符号面板。
- Tools → Codding → Snippets 勾选此项以打开曲谱符号预定义代码片断面板。

LilyPond 程序的输入就是包含曲谱代码的文本,按命令行指定的输出格式生成相应文件。
例如,以下曲谱代码:
执行命令,默认生成 PDF 文档,因为曲谱中定义了 midi,执行命令生成文件时就会得到一个 mid 文件:
参考
1. LilyPond http://lilypond.org
2. MuseScore https://musescore.org/
3. Finale https://www.finalemusic.com
4. SIbelius http://www.sibelius.com
5. Noteflight https://www.noteflight.com
1. Frescobaldi https://www.frescobaldi.org/
2. LilyPond — Usage http://lilypond.org/doc/v2.24/Documentation/usage-big-page.html
3. LilyPond — Snippets http://lilypond.org/doc/v2.24/Documentation/snippets-big-page.html
4. LilyPond — Learning Manual http://lilypond.org/doc/v2.24/Documentation/learning-big-page.html
5. LilyPond — Notation Reference http://lilypond.org/doc/v2.24/Documentation/notation-big-page.html
5. LilyPond — Notation Reference B. Cheat sheet http://lilypond.org/doc/v2.24/Documentation/notation-big-page.html#cheat-sheet
5. LilyPond — Essay on automated music engraving http://lilypond.org/doc/v2.24/Documentation/essay-big-page.html