【问题标题】:LilyPond missing repeat bar end lineLilyPond 缺少重复条结束线
【发布时间】:2020-12-07 20:44:12
【问题描述】:

刚接触 LilyPond 并试图用它来转录一些风笛音乐。在这个乐谱中有两组重复,但是它没有将重复小节末端添加到第一组,而只是第二组。即使我尝试用\bar ":|." 强制它,它也会被忽略。

\score {
  \header {
  }

  {
    \clef "treble"
    \time 3/4
    \hideKeySignature

    \repeat volta 2 { 
      \bar ".|:"
      \grg a8. b16 \dblc c4 \grg e
      \grg a8. b16 \dblc c4~ c4
      \dblb b8 \grG a \dblb b4~ b4
      \grg c16. b32 \grg a16. b32 \dblc c4~ c4
      \break
      \grg a8. b16 \dblc c4 \grg e
      \grg a8. b16 \dblc c4~ c4
      \dblb b8 \grG a \dblb b4 \thrwd d4
      \dblc c8. b16 \grg a4~ a4
      %% No bar end repeat line here?
    }
    \break
    \repeat volta 2 {
      \bar ".|:"
      \thrwd d8. e16 \grg f4 A
      \grf g8 f \dble e4~ e4
      \thrwd d8 c \dblb b4~ b4
      \grg c16. b32 \grg a16. b32 \dblc c4~ c4
      \break
      \thrwd d8. e16 \grg f4 A
      \grf g8 f \dble e4~ e4
      \thrwd d8 c \dblb b4 \thrwd d4
      \dblc c8. b16 \grg a4~ a4
    }
  }
}

此代码生成。 我想在第二行之后重复条结束标记。

【问题讨论】:

    标签: lilypond


    【解决方案1】:

    这似乎有效。它与强制条线有关。

    \version "2.20.0"
    \include "bagpipe.ly"
    
    \score {
      \header {
      }
    
      {
        \clef "treble"
        \time 3/4
        \hideKeySignature
    
        \repeat volta 2 { 
          \bar ".|:"
          \grg a8. b16 \dblc c4 \grg e
          \grg a8. b16 \dblc c4~ c4
          \dblb b8 \grG a \dblb b4~ b4
          \grg c16. b32 \grg a16. b32 \dblc c4~ c4
          \break
          \grg a8. b16 \dblc c4 \grg e
          \grg a8. b16 \dblc c4~ c4
          \dblb b8 \grG a \dblb b4 \thrwd d4
          \dblc c8. b16 \grg a4~ a4
          %% No bar end repeat line here?
        }
        \break
        \repeat volta 2 {
          %\bar ".|:"
          \thrwd d8. e16 \grg f4 A
          \grf g8 f \dble e4~ e4
          \thrwd d8 c \dblb b4~ b4
          \grg c16. b32 \grg a16. b32 \dblc c4~ c4
          \break
          \thrwd d8. e16 \grg f4 A
          \grf g8 f \dble e4~ e4
          \thrwd d8 c \dblb b4 \thrwd d4
          \dblc c8. b16 \grg a4~ a4
        }
      }
    }
    

    请注意,我包含了“bagpipe.ly”文件并且我有一个版本号。请务必在以后发布完整的工作示例。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-12-01
    • 1970-01-01
    • 2021-12-10
    • 1970-01-01
    • 1970-01-01
    • 2013-11-10
    • 2018-08-13
    • 2021-08-28
    相关资源
    最近更新 更多