我正在使用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" }
}
}
实现这一点的一种方法是覆盖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 "|."
}