lilypond-user
[Top][All Lists]
Advanced

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

Re: color lyrics text


From: MING TSANG
Subject: Re: color lyrics text
Date: Wed, 13 Dec 2017 01:36:25 +0000 (UTC)

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
  }
}

Inline image


From: Simon Albrecht <address@hidden>
To: David Kastrup <address@hidden>; Peter Chubb <address@hidden>
Cc: Ming Tsang <address@hidden>; "address@hidden" <address@hidden>
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" <address@hidden> 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




reply via email to

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