lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color one SystemStartBrace


From: David Nalesnik
Subject: Re: Color one SystemStartBrace
Date: Wed, 13 Mar 2019 13:47:21 -0500

On Wed, Mar 13, 2019 at 1:44 PM Aaron Hill <address@hidden> wrote:
>
> On 2019-03-13 11:41 am, Aaron Hill wrote:
> > On 2019-03-13 10:53 am, Urs Liska wrote:
> >> Hi all,
> >>
> >> is it possible to get hold of a single SystemStartBrace/Bar/Bracket to
> >> color it?
> >>
> >> \layout {
> >>   \context {
> >>     \Score
> >>     \override SystemStartBrace.color = #red
> >>   }
> >> }
> >>
> >> works but
> >>
> >> (\once) \override Score.SystemStartBrace.color = #red
> >>
> >> somewhere in the input doesn't have any effect.
> >>
> >> Any suggestions?
> >
> > I think it's StaffGroup (or other appropriate container) that you
> > want, not Score:
> >
> > %%%%
> > \version "2.19.82"
> >
> > \new StaffGroup <<
> >   \new Staff { \override StaffGroup.SystemStartBracket.color = #red b'1
> > }
> >   \new Staff { b'1 }
> >>>
> > %%%%
>
> Oops, Score works too:
>
> %%%%
> \version "2.19.82"
>
> \score { <<
>    \new Staff { \override Score.SystemStartBar.color = #red b'1 }
>    \new Staff { b'1 }
> >> }
> %%%%
>
> -- Aaron Hill

This will color start bars on successive lines, too.

Try:

\version "2.19.82"

one = \relative c' {
  \alterBroken color #(list red blue black) StaffGroup.SystemStartBracket
  a1 \break
  a \break
  a
}

two = \relative c' {
  c c c
}

\new StaffGroup <<
  \new Staff \one
  \new Staff \two
>>

HTH,
David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]