Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lilypond repeat symbol vanishes next line uses: \bar ".|"

Tags:

lilypond

I am creating a chord chart where the first 8 bars are repeated using \repeat volta 2 {}; no problem. I use \bar ".|" to force bar lines on the left side. Not conventional, but, that's what I want.

The next line starts with the above mentioned \bar ".|". That adds the next line correctly, however, the repeat symbol at the end of the repeat section is not rendered.

Here's my snippet:

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

} 
like image 393
john ware Avatar asked Jan 20 '26 14:01

john ware


1 Answers

You hit a known problem: see Issue #3688 Manual barlines overwrite repeat barlines.

Anyway, your snippet will compile fine as long as you avoid manual bars (you need it only in the first measure) and use \repeat commands instead for each repetition. Also, you probably want to use \bar ".|:, as explained in the documentation.

\version "2.18.2"

\score {
  \chordmode {
    \repeat volta 2 {
      \bar ".|:"
      c1 | c |
      \break
    }
    \repeat volta 2 {
      d1 | d |
      \break
    }
    c1 d |
  }
}
like image 108
fedelibre Avatar answered Jan 23 '26 21:01

fedelibre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!