gpt4 book ai didi

LilyPond:小节线旁边的标记文本?

转载 作者:行者123 更新时间:2023-12-04 00:41:17 24 4
gpt4 key购买 nike

我正在处理带有 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 "|."
}

关于LilyPond:小节线旁边的标记文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18538793/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com