1

我正在创建一个和弦图表,其中前 8 个小节重复使用\repeat volta 2 {};没有问题。我\bar ".|"用来强制左侧的条线。不是传统的,但是,这就是我想要的。

下一行从上面提到的开始\bar ".|"。这会正确添加下一行,但是不会呈现重复部分末尾的重复符号。

这是我的片段:

\version "2.18.2"

\score {

  \chordmode {

    \repeat volta 2 {
       \bar ".|" c1 | c | 
       \break
       \bar ".|" d1 | d | 
      \break
     }

    % uncomment one of the following two lines only
    %This first one adds a new line correctly, but the bar line is wrong.
    \bar "|" c1 |

    %This one add a new line, but the above repeat section has no ending repeat symbol 
    %\bar ".|" c1 | 
}

} 
4

1 回答 1

1

您遇到了一个已知问题:请参阅问题 #3688 Manual barlines overwrite repeat barlines

无论如何,只要您避免使用手动条(您只在第一个小节中需要它)并使用 \repeat 命令代替每次重复,您的代码段就可以正常编译。此外,您可能想要使用\bar ".|:,如文档中所述

\version "2.18.2"

\score {
  \chordmode {
    \repeat volta 2 {
      \bar ".|:"
      c1 | c |
      \break
    }
    \repeat volta 2 {
      d1 | d |
      \break
    }
    c1 d |
  }
}
于 2018-09-13T13:54:55.150 回答