hi Simon, David, Peter and Ben:
Thank you for your answer. Here is so many ways to color lyric text. I am
wondering, if one method is better than the other.
Thank you,Ming
Here is the various method.
\version "2.19.80"\language "english"
\header { title = "test to set lyric text in color"}
global = { \key c \major \time 4/4}
sopranoVoice = { \global \dynamicUp r2. r8 e'16( d') | c'8 ( c''4) a'8
g'8.( f'16 e'8) f'8| e'4 d'4 c'2 | }
clrGreen = { \override LyricText . color = #green }reVrt = { \revert LyricText
. color }
clrRed = { \override Lyrics.LyricText.color = #red }clrBlue = { \override
Lyrics.LyricText.color = #green }clrBlack = { \override Lyrics.LyricText.color
= #black }
verseOne = \lyricmode { \clrGreen 宇 宙 \reVrt 宇 宙 \markup \with-color #red 萬 物
頌 揚 }verseTwo = \lyricmode { 宇 宙 宇 宙 \clrRed 萬 物 頌 揚 }verseThree =
\lyricmode { 宇 宙 宇 宙 \clrRed 萬 物 \clrBlack 頌 揚 }
\score { \new Staff \with { instrumentName = "Soprano" midiInstrument =
"choir aahs" } { \sopranoVoice } \addlyrics { \verseOne } \addlyrics {
\verseTwo } \addlyrics { \verseThree } \layout { } \midi { \tempo 4=100
}}
From: Simon Albrecht <[email protected]>
To: David Kastrup <[email protected]>; Peter Chubb <[email protected]>
Cc: Ming Tsang <[email protected]>; "[email protected]"
<[email protected]>
Sent: Tuesday, December 12, 2017 2:27 PM
Subject: Re: \unfoldRepeats for midi file
On 12.12.2017 11:27, David Kastrup wrote:
> "Peter Chubb" <[email protected]> writes:
>
>> Ming> Thank you for the
>> Ming> answer. One question: how can I just want to show few color
>> Ming> lyric text only? I try to use {}, but it shows all lyric text in
>> Ming> color. Ming
>>
>> You need to delimit the coloured part. Something like
>> words=\lyricmode {
>> you \markup {\with-color #green can} see the \markup
>> {\with-color #red} frog
>> }
> Uh no?
>
> words=\lyricmode {
> you \markup \with-color #green can see the
> \markup \with-color #red frog
> }
>
> works fine.
Or
words = \lyricmode {
you
\override LyricText . color = #green
can see
\revert LyricText . color
the frog
}
Best, Simon
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user