# Repeat bar errors

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.

Here is my minimal code.

• 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. 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 Nov 5 '21 at 15:47

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

• it works thank you! Nov 12 '21 at 9:09