|
From: | Lukas-Fabian Moser |
Subject: | Re: Coloring just one note in a chord |
Date: | Sat, 20 Aug 2022 20:01:48 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
Hi Felix, Am 20.08.22 um 19:24 schrieb DoubleFelix:
I have a basic staff defined like so: \version "2.22.2" \language "english" \new Staff { \key c \major \clef treble \numericTimeSignature < f' g' d' >1 \bar "|." }I want to make the g' note head colored in green, but if I try this, I get syntax errors about an unexpected \override:\override NoteHead.color = SeaGreen \override Stem.color = SeaGreen g' \revert NoteHead.color \revert Stem.color
Single notes in a chord can be influenced using \tweak's instead of \override's. Tweaks can be made out of overrides using \single, but they also lend themselves to creating very convenient shorthands:
\version "2.22.2" gr = \tweak color SeaGreen \tweak Stem.color SeaGreen \etc \new Staff { <f' \gr g' d'>1 \gr <f' g' d'>2 } Lukas
[Prev in Thread] | Current Thread | [Next in Thread] |