lilypond-user
[Top][All Lists]
Advanced

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

Re: Color one SystemStartBrace


From: Urs Liska
Subject: Re: Color one SystemStartBrace
Date: Wed, 13 Mar 2019 21:35:53 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1


Am 13.03.19 um 19:47 schrieb David Nalesnik:
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

Well, I *could* make that work in my case by placing that command at the beginning of the score and use a list with all elements black and only the last one in the highlighting color.

But actually I would prefer having something that I can insert in the input file right where it happens. Like not saying "color the fifth system from here (the start)" but rather "color the next system".

Urs




reply via email to

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