将“ [”条形线连接到Lilypond

时间:2018-12-11 21:21:47

标签: lilypond

如何让"["型条跨五线谱连接?我在文档和代码段存储库中找不到任何有用的信息。这是说明问题的MWE。

\version "2.19.82"

rightHand = \relative c'' {

  \bar "[|:"
  \repeat volta 4 {
    ees8 g, ees' ees aes, ees' a, f' |
  }
}

leftHand = \relative c {

  \bar "[|:"
  \repeat volta 4 {
    ees8 bes' ees e, b' e f, c' |
  }
}

\score {
  \context PianoStaff <<
    \new Staff = RH {
      \clef treble \rightHand
    }

    \new Staff = LH {
      \clef bass \leftHand
    }
  >>
  \layout {
    \context {
      \Score
      %% Changing the defaults from engraver-init.ly
      startRepeatType = #"[|:"
      endRepeatType = #":|]"
      doubleRepeatType = #":|][|:"
    }
  }
}

PDF output

谢谢!

1 个答案:

答案 0 :(得分:0)

不幸的是,似乎没有解决此问题的简便方法。 http://lsr.di.unimi.it/LSR/Item?id=991上有一个名为repeatBarGroupAlter的自定义函数可以完成工作,但是有点麻烦,因为它需要您手动设置“角翼”及其角度之间的距离。偏移量。

enter image description here