我正在使用ragged-last
系统的分数,我想在分数旁边放一个标记列,从而填补最终小节和边距之间的差距。有什么方法可以实现这个目标?
示例:
\paper {
ragged-last = ##t
}
\score {
\new Staff <<
\new Voice = "example" {
c4 d e f | g a b c
\bar "|."
}
>>
}
\markup {
\column {
\line { "Some text I want" }
\line { "next to the score" }
}
}
答案 0 :(得分:4)
执行此操作的一种方法是覆盖BarLine模板,以便它包含您的标记:
\version "2.18.2"
barlineMarkup = \markup {
\whiteout
\pad-around #1
\vcenter
\column {
"Some text I want"
"next to the score"
}
}
customBarLine = {
\once \override Staff.BarLine #'stencil =
#(lambda (grob)
(ly:stencil-combine-at-edge
(ly:bar-line::print grob)
X RIGHT
(grob-interpret-markup grob barlineMarkup)
0))
}
{
\override Score.BarLine.layer = 1
c' d' e' c' \customBarLine \bar "|."
}