Lilypond:为什么第二和弦印在五线谱下方

发布于 2025-01-20 14:33:23 字数 484 浏览 2 评论 0原文

小片段(简化示例)应在五线谱顶部显示两个和弦:

someChord = \chords {
  c1
}

\score {
  
  <<
  {
    \someChord
    \someChord
  } 
  {   
    \repeat unfold 2 { r1 }
  } 
  >>

  \layout{}
}

但是,第二个和弦打印在五线谱下方。这是为什么?

测试使用: GNU LilyPond 2.22.2(运行 Guile 2.2) GNU LilyPond 2.23.7(运行 Guile 2.2)

两者给出相同的输出:

在此处输入图像描述

Small snippet (Simplified example) that should show two chords on top of a staff:

someChord = \chords {
  c1
}

\score {
  
  <<
  {
    \someChord
    \someChord
  } 
  {   
    \repeat unfold 2 { r1 }
  } 
  >>

  \layout{}
}

However, the second chord is printed below the staff. Why is that?

Tested w/:
GNU LilyPond 2.22.2 (running Guile 2.2)
GNU LilyPond 2.23.7 (running Guile 2.2)

Both give the same output:

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那小子欠揍 2025-01-27 14:33:23

这似乎有效(感谢Ole的提示!):

someChord = \chordmode {
  c1
}

\score {
  
  <<
  \new ChordNames {
    \someChord
    \someChord
  } 
  {   
    \repeat unfold 2 { r1 }
  } 
  >>

  \layout{}
}

结果:

“在此处输入映像”

我很好奇为什么,因为第一个chordnames上下文在第二次开始之前结束了。 ..

This seems to work (thanks Ole for the hint!):

someChord = \chordmode {
  c1
}

\score {
  
  <<
  \new ChordNames {
    \someChord
    \someChord
  } 
  {   
    \repeat unfold 2 { r1 }
  } 
  >>

  \layout{}
}

Result:

enter image description here

I'm curious why though, because the first ChordNames context was ended before the second started....

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文