« Introduction à LilyPond/Une ligne mélodique complète » : différence entre les versions

Contenu supprimé Contenu ajouté
m →‎Levée ou anacrouse : syntaxhighlight
m →‎Accords : syntaxhighlight
Ligne 126 :
 
; Exemple
: <syntaxhighlight lang="tex">\relative c' { c8 <e g c>4 <e g c>8 }</syntaxhighlight>
: <code><span style="color: #AA0000;">\relative c' {</span> c8 <span style="color: #00AA00;"><</span>e g c<span style="color: #00AA00;">></span>4 <span style="color: #00AA00;"><</span>e g c<span style="color: #00AA00;">></span>8 <span style="color: #AA0000;">}</span></code>
 
=== Résolution d'un accord dissonant ===
Ligne 136 :
; Exemple
: comparer les trois solutions suivantes
: <syntaxhighlight lang="tex">
<span style="color: #AA0000;">\relative c' {</span>
\relative c' {
% premiere solution
c4
<span style="color: #00AA00;"><</span>g' b d<span style="color: #00AA00;">></span>4
<g' c,b d>4
<span style="color: #00AA00;"><</span>c, e g b<span style="color: #00AA00;">></span>~
<c, e g b>~
<span style="color: #00AA00;"><</span>c e g c<span style="color: #00AA00;">></span>
<c e g c>
 
% deuxieme solution
c4
<span style="color: #00AA00;"><</span>g' b d<span style="color: #00AA00;">></span>4
<g' b d>4
<span style="color: #00AA00;"><<</span>
<<
<span style="color: #0000AA;">{</span> c,4~ c <span style="color: #0000AA;">}</span>
{ c,4~ c }
<span style="color: #0000AA;">{</span> e4~ e <span style="color: #0000AA;">}</span>
{ e4~ e }
<span style="color: #0000AA;">{</span> g4~ g <span style="color: #0000AA;">}</span>
{ g4~ g }
<span style="color: #0000AA;">{</span> b4 c <span style="color: #0000AA;">}</span>
{ b4 c }
<span style="color: #00AA00;">>></span>
>>
 
% troisieme solution
c,4
c,4
<span style="color: #00AA00;"><</span>g' b d<span style="color: #00AA00;">></span>4
<g' b d>4
<span style="color: #00AA00;"><<</span>
<<
<span style="color: #0000AA;">{</span> c,2 <span style="color: #0000AA;">}</span>
{ c,2 }
<span style="color: #0000AA;">{</span> e2 <span style="color: #0000AA;">}</span>
{ e2 }
<span style="color: #0000AA;">{</span> g2 <span style="color: #0000AA;">}</span>
{ g2 }
<span style="color: #0000AA;">{</span> b4(c) <span style="color: #0000AA;">}</span>
{ b4(c) }
<span style="color: #00AA00;">>></span>
>>
<span style="color: #AA0000;">}</span>
}
</syntaxhighlight>
: résultat :
: [[Image:Ly resolution accord trois solutions.png|300px]]
Ligne 180 ⟶ 182 :
 
; Exemple
: <syntaxhighlight lang="tex">
<span style="color: #AA0000;">\chordmode {</span>
\chordmode {
c2 c2:m
c2 c2:m
c4:dim c:aug c:7 c:7maj
c:sus2 c:sus4 r2
}
<span style="color: #AA0000;">}</span>
</syntaxhighlight>
: donne
: [[Image:Ly accords de do.png|300px]]