Re: hide barline when \startStaff coincides with system break

2019-08-04 Thread mason
On 08/04, Toine Schreurs wrote:
> > In bar 6 below, where \startStaff coincides with a system break, a lone
> > barline is drawn at the end of the previous system. I would prefer for
> > the barline to be omitted in this situation.
> 
> Insert the next line before every \startStaff:
>   \once \override Staff.BarLine.break-visibility = ##(#f #t #f)
> or
>   \once \override Staff.BarLine.break-visibility = #center-visible
> 
> If a \startStaff occurs at the end of a line, no barline will be drawn.

Perfect!

Toine and Pierre, thanks for your help.

Mason


signature.asc
Description: PGP signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide barline when \startStaff coincides with system break

2019-08-04 Thread Toine Schreurs
> In bar 6 below, where \startStaff coincides with a system break, a lone
> barline is drawn at the end of the previous system. I would prefer for
> the barline to be omitted in this situation.

Insert the next line before every \startStaff:
  \once \override Staff.BarLine.break-visibility = ##(#f #t #f)
or
  \once \override Staff.BarLine.break-visibility = #center-visible

If a \startStaff occurs at the end of a line, no barline will be drawn.

Toine Schreurs

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide barline when \startStaff coincides with system break

2019-08-03 Thread Pierre Perol-Schneider
Hi Mason,
Here it goes:

\version "2.21.0"

\score {
  <<
\new Staff \relative c' {
  c4 c c c |
  c4 c c c |
  \stopStaff
  s1
  \startStaff
  c4 c c c
  \stopStaff
  s1 \once\omit Staff.BarLine
  \startStaff
  \break
  c4 c c c
}
\new Staff \relative c' {
  \repeat unfold 6 { c4 c c c }
}
  >>
}

Cheers,
Pierre

Le sam. 3 août 2019 à 03:29,  a écrit :

> In bar 6 below, where \startStaff coincides with a system break, a lone
> barline is drawn at the end of the previous system. I would prefer for
> the barline to be omitted in this situation.
>
> In bar 4, where \startStaff does not coincide with a system break, I
> have a slight preference to keep the barline.
>
> Is there an override that would cause a lone barline like that at the
> end of the system to be omitted? I would prefer that the override keep
> the barline before bar 4, but if that's not possible I would accept an
> override such that barlines are never drawn at a \startStaff.
>
> %%% begin MWE %%%
>
> \version "2.21.0"
>
> \score {
>   <<
> \new Staff \relative c' {
>   c4 c c c |
>   c4 c c c |
>   \stopStaff
>   s1
>   \startStaff
>   c4 c c c |
>   \stopStaff
>   s1 |
>   \startStaff
>   \break
>   c4 c c c
> }
> \new Staff \relative c' {
>   \repeat unfold 6 { c4 c c c }
> }
>   >>
> }
>
> %%% end MWE %%%
>
> Thanks,
>
> Mason
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user