|
From: | zarbot ziz |
Subject: | Re: variable pour colorier du texte Lyrics |
Date: | Thu, 9 Mar 2023 10:51:30 -0500 |
Le jeudi 09 mars 2023 à 10:37 -0500, zarbot ziz a écrit :
Bonjour,
J'aimerais savoir comment créer une variable (ou fonction) pour colorier du texte dans lyrics pour ne pas avoir à répéter la commande a chaque fois: je pensais a quelque chose comme: LM = \markup { \with-color #magenta } mais ne fonctionne pas
Exemple
}
\addlyrics {
\markup \with-color #magenta "1" "2" "3" \markup \with-color #blue" 4" "5" "4" "3" "1" \markup \with-color #magenta "2" }
}Bonjour,
2 manières de s'en sortir :
a) Avec
\etc
pour créer une fonctionCf. http://lilypond.org/doc/v2.24/Documentation/notation/formatting-text#text-markup-introduction (vers la fin)
\version "2.24.1" \markup LM = \markup \with-color "magenta" \etc { c'4 4 4 4 4 4 4 4 4 4 } \addlyrics { \markup \LM "1" "2" \markup \LM "3" }
Par contre, il faut remettre le
\markup
à chaque fois.b) Avec un
\override
de la propriétécolor
, ce qui est équivalent à mettre comme syllabe un\markup \with-color ...
\version "2.24.1" LM = \once \override LyricText.color = "magenta" { c'4 4 4 4 4 4 4 4 4 4 } \addlyrics { \LM "1" "2" \LM "3" }
Cordialement,
Jean
[Prev in Thread] | Current Thread | [Next in Thread] |