« Introduction à LilyPond/Gestion de partitions volumineuses » : différence entre les versions

Contenu supprimé Contenu ajouté
He7d3r (discussion | contributions)
m -code invalid in HTML5: <font> was deprecated a long time ago; use of CSS to format, instead of superfluous (and obsolete) "big" tags
m →‎Les variables : coloration différente
Ligne 59 :
<span style="color: #00AA00;">}</span>
<span style="color: #00AA00;"><<&lt;&lt;</span>
<span style="color: #0000AA;">\new Staff {</span>
\ThemePremier
Ligne 69 :
\ThemePremier
<span style="color: #0000AA;">}</span>
<span style="color: #00AA00;">>>&gt;&gt;</span>
 
Si vous travaillez avec plusieurs voix, une bonne pratique consiste à définir chaque voix dans une variable portant un nom explicite, puis d'utiliser ces variables dans une deuxième partie de fichier qui sera assez courte.
 
; Exemple
<span style="color: #AA0000;">\version "</span>''version''<span style="color: #AA0000;">"</span>
<span style="color: #A00AA0000;">%{
***********************
* *
Ligne 86 :
<span style="color: #AA0000;">% ***** Chant *****</span>
<span style="color: #00AA00;">PartieChant = {</span>
<span style="color: #00AA00;">}</span>
}
<span style="color: #AA0000;">% ***** Guitare *****</span>
<span style="color: #00AA00;">PartieGuitare = {</span>
<span style="color: #00AA00;">}</span>
}
<span style="color: #A00AA0000;">%{
**************************
* *
Ligne 110 :
<span style="color: #0000AA;">\new Staff {</span>
<span style="color: #707000;">\set Staff.instrument = "</span>Chant<span style="color: #707000;">"</span>
<span style="color: #707000;">\set Staff.instr = "</span>Ch.<span style="color: #707000;">"</span>
<span style="color: #707000;">\PartieChant</span>
<span style="color: #0000AA;">}</span>
Ligne 119 :
<span style="color: #0000AA;">}</span>
<span style="color: #00A0000AA;">\new StaffGroup {
<<&lt;&lt;</span>
<span style="color: #AAAA00707000;">\new Staff {</span>
<span style="color: #007070;">\set Staff.instrument = "</span>Guitare<span style="color: #007070;">"</span>
<span style="color: #007070;">\set Staff.instr = "</span>Gtr.<span style="color: #007070;">"</span>
<span style="color: #007070;">\clef "</span>G_8<span style="color: #007070;">"</span>
<span style="color: #007070;">\PartieGuitare</span>
<span style="color: #AAAA00007070;">}</span>
<span style="color: #AAAA00707000;">\new TabStaff {</span>
<span style="color: #007070;">\PartieGuitare</span>
<span style="color: #AAAA00707000;">}</span>
<span style="color: #00A0000AA;">>>&gt;&gt;
}</span>