« Introduction à LilyPond/Partition de chant et grille d'accords » : différence entre les versions
Contenu supprimé Contenu ajouté
→Paroles : \lyricmode |
m →Alignement manuel : coloration syntaxique |
||
Ligne 108 :
=== Alignement manuel ===
Dans certains cas, l'alignement automatique n'est pas possible, en particulier lorsque la partition a plusieurs portées (voir le chapitre ''[[../Association de plusieurs voix|../Association de plusieurs voix]]''). Il faut alors définir la durée de chaque syllabe manuellement. On utilise pour cela <code>\lyricmode</code>. Par exemple
<span style="color: #AA0000;">\header {</span>
title = "L'article est mort ce soir"
<span style="color: #AA0000;">}</span>
<span style="color: #AA0000;">\score {</span>
<span style="color: #00AA00;"><<</span>
<span style="color: #707000;">\relative {</span>
<span style="color: #007070;">\tempo</span> 4 = 120
<span style="color: #007070;">\clef</span> G
<span style="color: #007070;">\time</span> 4/4
<span style="color: #007070;">\partial</span> 8 r8
c'4 d8 e4 d e8
f4 e8 d4 c d8
e4 d8 c4. e8 d
<span style="color: #707000;">}</span>
<span style="color: #0000AA;">}</span>
<span style="color: #707000;">\lyricmode {</span>
_8
Dans4 le8 wi4 -- ki le8
no4 -- ble8 wi4 -- ki l'ar8 --
ticle4 est8 mort4. ce8 soir
<span style="color: #707000;">}</span>
<span style="color: #0000AA;">}</span>
<span style="color: #707000;">\relative {</span>
<span style="color: #007070;">\clef</span> F
<span style="color: #007070;">\time</span> 4/4
<span style="color: #007070;">\partial</span> 8 g8
<span style="color: #007070;">\repeat "unfold" 4 {</span> <span style="color: #700070;">\times 2/3 {</span> g4 g8 <span style="color: #700070;">}</span> <span style="color: #007070;">}</span>
<span style="color: #007070;">\repeat "unfold" 4 {</span> <span style="color: #700070;">\times 2/3 {</span> a4 a8 <span style="color: #700070;">}</span> <span style="color: #007070;">}</span>
<span style="color: #007070;">\repeat "unfold" 4 {</span> <span style="color: #700070;">\times 2/3 {</span> g4 g8 <span style="color: #700070;">}</span> <span style="color: #007070;">}</span>
<span style="color: #AAAA00;">}</span>
<span style="color: #0000AA;">}</span>
<span style="color: #707000;">\lyricmode {</span>
T8
<span style="color: #007070;">\repeat "unfold" 6 {</span> <span style="color: #700070;">\times 2/3 {</span> I4 de8 <span style="color: #700070;">}</span> <span style="color: #700070;">\times 2/3 {</span> geek4 T8 <span style="color: #700070;">}</span> <span style="color: #007070;">}</span>
<span style="color: #707000;">}</span>
<span style="color: #0000AA;">}</span>
<span style="color: #00AA00;">>></span>
<span style="color: #AA0000;">}</span>
[[Fichier:L article est mort.png|500px]]
|