1

我正在处理一些多维音乐(即单个乐器的不同拍号),显然小节线并不总是一致的。为此,我将替换layout { }为以下代码:

\layout { 
  \context { \Score 
    \remove "Timing_translator" 
    \remove "Time_signature_engraver" 
    \remove "Default_bar_line_engraver" 
  } 
  \context { \Staff
    \consists "Timing_translator" 
    \consists "Time_signature_engraver" 
    \consists "Default_bar_line_engraver" 
} 

现在一切正常,除了小节线雕刻器......如果我尝试添加重复小节线,它们将不会出现在最终乐谱中!不仅如此,实际上这些点上根本没有条形线!这是一个完整的例子:

\version "2.17.24"
A =  { 
  \time 2/4 
  c'4 e' \bar "|:" g' c'' \bar ":|" e'' g'' \bar "|."
}
B = {
  \time 3/4              
  c''4 g' e' \bar "||" c' g c' \bar "|."
}
\score {
  <<
    \new Staff \A
    \new Staff \B
  >>
  \layout { 
    \context { \Score 
        \remove "Timing_translator" 
        \remove "Time_signature_engraver" 
        \remove "Default_bar_line_engraver" 
    } 
    \context { \Staff
        \consists "Timing_translator" 
        \consists "Time_signature_engraver" 
        \consists "Default_bar_line_engraver" 
    } 
  }  
} 

此代码产生: 在此处输入图像描述

请注意五线谱 A 上如何显示 NO 条线。如果我们删除/bar "|:"and /bar ":|",那么 A 就像...

A =  { 
  \time 2/4 
  c'4 e' g' c'' e'' g'' \bar "|."
}

...条形线将正常显示:

在此处输入图像描述

我能做些什么来解决这个问题?

4

2 回答 2

2

与旧版本相比,2.17 版上的条线雕刻机进行了大量修改。由于代码错误,条形线没有出现。这是 Lilypond 2.17 的所有正确条线命令的列表:

http://www.lilypond.org/doc/v2.17/Documentation/notation/bars

于 2013-08-24T19:59:42.823 回答
0

至于自动重复条线,如果将“Repeat_acknowledge_engraver”从乐谱移动到布局内的员工上下文中,它们将被显示:

\version "2.17.24"
A =  { 
  \time 2/4 
  c'4 e' \repeat volta 2 { g' c'' } e'' g'' \bar "|."
}

\score {
    \new Staff \A
  \layout { 
    \context { \Score 
        \remove "Timing_translator" 
        \remove "Default_bar_line_engraver" 
        \remove "Repeat_acknowledge_engraver"
    } 
    \context { \Staff
        \consists "Timing_translator" 
        \consists "Default_bar_line_engraver" 
        \consists "Repeat_acknowledge_engraver"
    } 
  }  
} 

有关此问题的更多信息: https ://code.google.com/p/lilypond/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Stars%20Owner%20Patch%20Needs%20Summary&groupby=&sort =&id=3520

于 2013-08-27T20:40:33.457 回答