lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Repeat bar line do not show in polymetric music


From: Gilberto Agostinho
Subject: Repeat bar line do not show in polymetric music
Date: Sun, 25 Aug 2013 16:10:48 +0200

Hi all,

I am working with some polymetric music (i.e., different time signatures for 
individual instruments), and obviously the bar lines will not always 
coincide. I am using the following snippet:

\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" 

Everything now works fine, except for the bar line engraver... if I try to 
add repeat bar lines, they will not appear in the final score! Not only 
that, but actually there will be NO bar lines at all on those points! Here 
is a complete example:

\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" 
    } 
  }  

Note how NO bar lines are shown on staff A. If we remove the /bar "|:" and 
/bar ":|" from A, then we have the simple bar lines as expected.

I have found a possible solution for this problem, although I still do not 
understand why the code in the question above doesn't work properly. The 
solution consists of exchanging all the following commands:

\bar "|:", \bar ":| and \bar ":|:

for:

\bar ".|:", \bar ":|." and \bar ":|.|:

This solution works very well for the "start repeat bar line" and for the 
"stop repeat bar line", but the "stop and start repeat bat line" (the 3rd 
one in the list above) is not in the same style as the default one.

Also, if I use any /repeat volta n {music}, the repeat bar lines do NOT show 
automatically...

Any suggestions on how to solve this?! Thanks a lot!
Gilberto

reply via email to

[Prev in Thread] Current Thread [Next in Thread]