LilyPond:是否有可能恢复"无调"键?

Mic*_*ter 5 lilypond

在LilyPond中,指定\key c \major和留空键之间存在区别.在前一种情况下,转置工具将相应地改变密钥签名,而在后一种情况下,不会添加密钥签名.使用\transpose c d,例如,将添加两个利器,如果\key c \major是上市,但不是没有密钥上市的时候.

当我从"开放键"部分转到音调部分并返回"打开键"时会发生什么?我试过了\revert \key,但这似乎是错误的语法.有没有办法恢复到无钥匙区域?

最小的例子,它应该在第二部分中有一个平面的关键签名,但在其他地方没有锐器或平面:

\transpose c d {
  % Open key
  c8 e f g e d des c

  \key c \minor
  c es g es f d c b

  % How to return to open key??
  c8 e f g e d des c
}
Run Code Online (Sandbox Code Playgroud)

Mic*_*ter 6

在LilyPond邮件列表中,我被告知确实没有办法完成此任务 - 尽管以下是关于转置问题的解决方法:

\withMusicProperty #'untransposable ##t \key c \major
Run Code Online (Sandbox Code Playgroud)

此代码可防止C大调被转置.


我使用的另一种解决方法是使用标签,因此转置分数使用与C分数不同的密钥.以下是标签概述:http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Different-editions-from-one-source