« Introduction à LilyPond/La hauteur des notes » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 265 :
== Mise en forme compacte sans rythmique ==
 
Pour faire des exempleexemples compacts en largeur, on peut faire figurer le code suivant avant la description de la musique :
<syntaxhighlight lang="tex">
<span style="color: #A00;">\paper {</span>
\paper {
#(define dump-extents #t)
indent = 0\mm
ragged-right = ##t
}
<span style="color: #A00;">}</span>
</syntaxhighlight>
 
Pour faire des exemples ne comportant pas d'indication de durée (pas d'indication ni de barre de mesure), on peut faire figurer le code suivant avant la description de la musique :
<syntaxhighlight lang="tex">
<span style="color: #A00;">\layout {</span>
\layout {
<span style="color: #0A0;">\context {</span>
\context {
\Score
\Score
timing = ##f
}
<span style="color: #0A0;">}</span>
<span style="color: #0A0;">\context {</span>
\Staff
\remove Time_signature_engraver
}
<span style="color: #0A0;">}</span>
}
<span style="color: #A00;">}</span>
</syntaxhighlight>
Par exemple :
<syntaxhighlight lang="tex">
\version "2.10"
 
\paper {
Par exemple :
#(define dump-extents #t)
\version "2.10"
indent = 0\mm
ragged-right = ##t
<span style="color: #A00;">\paper {</span>
}
#(define dump-extents #t)
 
indent = 0\mm
\layout {
ragged-right = ##t
\context {
<span style="color: #A00;">}</span>
\Score
timing = ##f
<span style="color: #A00;">\layout {</span>
}
<span style="color: #0A0;">\context {</span>
\context {
\Score
timing = ##f\Staff
\remove Time_signature_engraver
<span style="color: #0A0;">}</span>
}
<span style="color: #0A0;">\context {</span>
}
\Staff
\remove Time_signature_engraver
<span style="color: #0A0;">}</span>
<span style="color: #A00;">}</span>
<span style="color: #A00;">\relative c' {</span> c d e f g a b <span style="color: #A00;">}</span>
</syntaxhighlight>
donne
: [[Image:Gamme do majeur clef sol.png|150px]]