3

我正在使用带有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" }
  }
}
4

1 回答 1

5

一种方法是覆盖 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 "|."
}
于 2013-09-13T21:49:45.567 回答