Lilypond:手动打印密钥签名(或取消)

时间:2013-12-04 22:12:49

标签: lilypond

我的作品涉及一个关键签名变化的D.S. al coda重复,如:

\mark \markup { \musicglyph #"scripts.segno" }

\key a \minor
a b c' d'
% more music in a minor

\key a \major
a b cis' d'
% more music in a major

\once \override Score.RehearsalMark #'break-visibility = #end-of-line-visible
\once \override Score.RehearsalMark #'self-alignment-X = #RIGHT
\mark "D.S. al coda"
\bar "||"

% coda in a major follows

为了帮助播放器在 dal segno 中从主要版本转换为次要版块,我想在双向条形图之前打印键取消。随后的尾声条应该保留在主要部位。

如何在Lilypond 2.14或更高版本中实现这一目标?

1 个答案:

答案 0 :(得分:1)

附加到您的代码

\key a \minor  % change key back from a-major to a-minor
s1             % enforce output of key cancellation with a hidden rest
\bar ""        % suppress trailing bar