Hi to everybody,

I have found a solution one of my questions on this mailing list, so I
thought it would be nice for me to share it here (in case someone might
look for it one day). It concerns the lack of automatic repeat bar lines
when using \repeat volta N {music} with the following snippet:

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


The solution is to move the "Repeat_acknowledge_engraver" from the Score to
the Staff context in the layout. Also, in order to have the last bar line
appearing (\bar "|."), the "Timing_translator" should be also moved from
the Score to the Staff context. Here is an example of a working code:

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

Take care,
Gilberto


On Mon, Aug 26, 2013 at 2:37 AM, Gilberto Agostinho <
gilbertohasn...@googlemail.com> wrote:

> Hi Thomas,
>
> Thank you so much for all your help, I really appreciate it. Well, in this
> case I will continue to manually add repeat bar lines, but I will also
> report this as a bug. Hopefully this could be solved in some future update.
>
> Take care!
> Gilberto
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to