0

I'm triyng to have the second line open at the end as the first. But with repeats bar at the third line the second line get a bar and if I try to overrite with \once \hide Staff.BarLine also the bar at the third line disappears. What's the correct way to do it? Thank you.

enter image description here

Here is my minimal code.

4
  • It's a bit hard to tell exactly what you are asking for, but if you want an invisible bar line try \bar"" Nov 5 '21 at 11:58
  • I want the second line without bar. \bar"" doesn't work.
    – Mahanidhi
    Nov 5 '21 at 12:22
  • @Mahanidhi Could you make sure your minimal code is able to be compiled? Also, I wonder if the repeat at the start of the third line is part of the issue; LilyPond might force a barline at the end of the second system since a repeat is about to start.
    – Richard
    Nov 5 '21 at 12:39
  • Sorry I forgot to add the \include-all file: lilybin.com/6s1z36/1
    – Mahanidhi
    Nov 5 '21 at 15:47
1

This is done with the break-visibility property.

Add \once \override Score.BarLine.break-visibility = #'#(#f #t #t).

More about the break-visibility property here.

Minimal example:

\score {
    \new Staff {
        \relative c' {
        \key des \major
        \cadenzaOn
        \repeat volta 2 {
            des4 ees f2
            des4 ees f2 \bar "" \break
            des4 ees f2
            des4 ees f2
        }
        des4 ees f2 \once \override Score.BarLine.break-visibility = #'#(#f #t #t) \break
        \repeat volta 2 {
            des4 ees f2
            des4 ees f2
        }
        }
    }
}
1
  • it works thank you!
    – Mahanidhi
    Nov 12 '21 at 9:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.