lilypond-user
[Top][All Lists]
Advanced

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

Re: Coda/Segno sign color override not working: LiliyPond 2.24.0


From: Mark Mathias
Subject: Re: Coda/Segno sign color override not working: LiliyPond 2.24.0
Date: Sat, 25 Mar 2023 09:10:35 -0400

On Fri, Mar 24, 2023, 7:59 PM Leo Correia de Verdier <leo.correia.de.verdier@gmail.com> wrote:
The problem with that solution is that it changes all Scripts, including all articulations. I would suggest the somewhat hacky solution of redefining just the commands in case, like

segno = \tweak color #red \segno
coda = \tweak color #red \coda

But if something more elegant is required (for instance if there could be conflicting tweaks) there is a solution in this thread: https://lists.gnu.org/archive/html/lilypond-user/2021-09/msg00484.html

HTH
/Leo

> 25 mars 2023 kl. 00:35 skrev Michael Werner <reznaeous@gmail.com>:
>
> Hi Laurie,
>
> On Fri, Mar 24, 2023 at 7:19 PM savage.laurie <savage.laurie@gmail.com> wrote:
> I think the issue might be that I am using explicit \coda and \segno commands and your example uses the new \repeat segno form which will be too complex in the specific big band chart I'm editing. It's about 160 bars long with the segno in bar 24 and the "to coda" symbol in bar 48 and three repeated sections, I got lost in the nested braces when I tried the new structure. If I was writing it from scratch rather than re-editing it would be simpler.
>
> That is indeed the issue, as those marks are a different type. Just needs a different override in a different context. Turns out that using the \coda and \segno commands the symbols created are handled the same as articulations. That means they fall into the somewhat more generic Script type, which is handled in the Voice context. Therefor:
>
> \layout {
>   \context {
>     \Score
>     \override CodaMark.color = #red
>     \override SegnoMark.color = #red
>     \override SectionLabel.color = #red
>     \override SectionLabel.font-size = #3
>     \override RehearsalMark.font-size = #3
>     \override RehearsalMark.color = #red
>     \override TextMark.color = #red
>   }
>   \context {
>     \Voice
>     \override Script.color = #red
>   }
> }
>
> should get you sorted.
>
> Michael



The "elegant" solution intrigues me, but the link to the thread appears to be down.

Mark Mathias

reply via email to

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