Partitions avec Lilypond pour wiki

Leçons de niveau avancé
Une page de Wikiversité, la communauté pédagogique libre.
Partitions avec Lilypond pour wiki




Introduction[modifier | modifier le wikicode]

LilyPond est un logiciel libre de notation musicale, qui a la particularité d’utiliser une notation littérale pour indiquer les notes, signes d'articulation, dynamiques, etc[1].

C'est pourquoi il a été choisi pour être intégré dans le système wiki de WikiMedia pour permettre aux contributeurs de rédiger des "petits bouts" de partition musicale, destinés par exemple à l'illustration d'un article sur la musique[2]. L'extension Lilypond, avec sa balise <score>, a été implémentée le 22 avril 2013[3].

On pourra trouver plus de détails sur cette implémentation dans le document Extension:Score sur MediaWiki (en anglais).


Le but de cette leçon est de faciliter l'apprentissage du code Lilypond, et de permettre à tout un chacun de pouvoir éditer des exemples musicaux simples au départ, ou plus évolués, avec des paroles, des annotations diverses au dessus des portées, etc.


Syntaxe de base[modifier | modifier le wikicode]

Code minimal[modifier | modifier le wikicode]

<score> { c'1 } </score>

donne :

 { c'1 }


Nous pouvons voir que Lilypond ajoute par défaut une clef de sol, une mesure à 4/4, et place les barres de mesure de façon automatique aux endroits adéquats.

Cependant il nous paraît plus rigoureux d'indiquer ces éléments de façon explicite, tout en ajoutant des retours à la ligne pour plus de lisibilité. Nous aurons alors le code suivant :

<score>
{
\clef treble

c'1

\bar "|."
}
</score>

qui donnera la partition suivante :



{
\clef treble

c'1

\bar "|."
}


Code de base[modifier | modifier le wikicode]

Pour nos exemples musicaux, nous utilisons le code :

<score> { \clef treble a''1 \bar "|." } </score>

ou plutôt, de façon moins concise mais plus claire :

<score>
{
\clef treble
a'1
\bar "|."
}
</score>

qui permet d'obtenir le résultat suivant :


{
\clef treble
a'1
\bar "|."
}


Fonctions simples[modifier | modifier le wikicode]

Anacrouse[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.19/Documentation/notation/displaying-rhythms#upbeats


Syntaxe

\partial durée


Code source

<score vorbis="1">
{
\clef bass
\key g \major 
\time 3/4

\partial 4
g4
c8 d e fis g a b4 c'2

\bar "|."
}
</score>


Résultat


{
\clef bass
\key g \major 
\time 3/4

\partial 4
g4
c8 d e fis g a b4 c'2

\bar "|."
}



Barres de mesures[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.19/Documentation/notation/bars


Syntaxe

\bar


Code source Résultat
<score vorbis="1">
{
\clef bass

c1	\bar "|"
d	\bar "."
e	\bar "||"
f	\bar ".|"
g	\bar ".."
a	\bar "|.|"
b	\bar "|."

\clef treble

c'	\bar ";"
d'	\bar "!"
e'	\bar ".|:"
f'	\bar ":..:"
g'	\bar ":|.|:"
a'	\bar ":|.:"
b'	\bar ":.|.:"
c''	\bar "[|:"
d''	\bar ":|][|:"
e''	\bar ":|]"
f''	\bar ":|."

\bar "|."
}
</score>

{
\clef bass

c1	\bar "|"
d	\bar "."
e	\bar "||"
f	\bar ".|"
g	\bar ".."
a	\bar "|.|"
b	\bar "|."

\clef treble

c'	\bar ";"
d'	\bar "!"
e'	\bar ".|:"
f'	\bar ":..:"
g'	\bar ":|.|:"
a'	\bar ":|.:"
b'	\bar ":.|.:"
c''	\bar "[|:"
d''	\bar ":|][|:"
e''	\bar ":|]"
f''	\bar ":|."

\bar "|."
}



Doigtés[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/inside-the-staff#fingering-instructions


Syntaxe

note-chiffre_du_doigt
Code source Résultat
<score vorbis="1">
{
\clef bass
c4-5 a-3 f-1 c'-5
r1
\bar "|."
}
</score>

{
\clef bass
c4-5 a-3 f-1 c'-5
r1
\bar "|."
}



Glyphes / Signes "spéciaux"[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.19/Documentation/notation/bars#index-musicglyph-1

http://www.lilypond.org/doc/v2.19/Documentation/notation/the-feta-font

http://www.lilypond.org/doc/v2.19/Documentation/notation/bars#bar-and-bar-number-checks



Syntaxe

\musicglyph #"scripts.ufermata"


Code

<score vorbis="1">
{
\clef bass

c \mark \markup { \musicglyph #"clefs.kievan.do" }
<e g> \mark \markup { \musicglyph #"scripts.ufermata" }

c1 \mark \markup { \musicglyph #"scripts.segno" }
c1 \mark \markup { \musicglyph #"scripts.coda" }
c1 \mark \markup { \musicglyph #"scripts.ufermata" }
c1

\bar "|."
}
</score>


Résultat


{
\clef bass

c \mark \markup { \musicglyph #"clefs.kievan.do" }
<e g> \mark \markup { \musicglyph #"scripts.ufermata" }

c1 \mark \markup { \musicglyph #"scripts.segno" }
c1 \mark \markup { \musicglyph #"scripts.coda" }
c1 \mark \markup { \musicglyph #"scripts.ufermata" }
c1

\bar "|."
}




Hampes & ligatures[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/learning/on-the-un_002dnestedness-of-brackets-and-ties

http://lilypond.org/doc/v2.18/Documentation/notation/beams


Syntaxe

  • Type de crochet Fonction
  • { … } Délimite un segment de musique séquentielle
  • < … > Délimite les notes d’un accord
  • << … >> Délimite des sections simultanées
  • ( … ) Marque le début et la fin d’une liaison
  • \( … \) Marque le début et la fin d’une liaison de phrasé
  • [ … ] Marque le début et la fin d’une ligature manuelle

D’autres constructions permettent d’obtenir des lignes regroupant ou en travers des notes : les liaisons de prolongation indiquées par un tilde (~), les marques de nolet avec \times x/y { … }, ou encore les notes d’ornement avec \grace{ … }.

\stemUp
\stemDown
\stemNeutral


Code source Résultat
<score vorbis="1">
{
\clef bass
g8\( a b[ c' b\) a] g4 

a8[ ais] d[ ees r d] c16 b a8

\autoBeamOff
a8 c b4 d8. c16 b4 |
\autoBeamOn
a8 c b4 d8. c16 b4 |

\time 4/4
r4 r8[ g' a r] r8 g[ | a] r

\bar "|."
}
</score>

{
\clef bass
g8\( a b[ c' b\) a] g4 

a8[ ais] d[ ees r d] c16 b a8

\autoBeamOff
a8 c b4 d8. c16 b4 |
\autoBeamOn
a8 c b4 d8. c16 b4 |

\time 4/4
r4 r8[ g' a r] r8 g[ | a] r

\bar "|."
}


Code source Résultat
<score vorbis="1">
{
\clef bass
\stemUp
g8\(^"Hampes vers le haut" a b[ c' b\) a] g4
\bar "|."
}
</score>

{
\clef bass
\stemUp
g8\(^"Hampes vers le haut" a b[ c' b\) a] g4
\bar "|."
}
<score vorbis="1">
{
\clef bass
\stemDown
g8\(^"Hampes vers le bas" a b[ c' b\) a] g4
\bar "|."
}
</score>

{
\clef bass
\stemDown
g8\(^"Hampes vers le bas" a b[ c' b\) a] g4
\bar "|."
}


Improvisation[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/note-heads#index-improvisationOn-1


Syntaxe

\improvisationOn


Code

<score vorbis="1">
{
\clef bass

\new Voice \with {
  \consists "Pitch_squash_engraver"
} {
  e8 e g a a16( bes) a8 g
  \improvisationOn
  e8 ~
  e2 ~ e8 f4 f8 ~
  f2
  \improvisationOff
  a16( bes) a8 g e
}

\bar "|."
}
</score>


Résultat


{
\clef bass

\new Voice \with {
  \consists "Pitch_squash_engraver"
} {
  e8 e g a a16( bes) a8 g
  \improvisationOn
  e8 ~
  e2 ~ e8 f4 f8 ~
  f2
  \improvisationOff
  a16( bes) a8 g e
}

\bar "|."
}



Indication métronomique[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/displaying-rhythms#metronome-marks



Syntaxe

\tempo [durée note] = [tempo]


Code

<score vorbis="1">
{
\clef bass

\tempo 4 = 60
c2 d
e4. d8 c2

\tempo 4 = 120
c2 d
e4. d8 c2

\bar "|."
}
</score>


Résultat


{
\clef bass

\tempo 4 = 60
c2 d
e4. d8 c2

\tempo 4 = 120
c2 d
e4. d8 c2

\bar "|."
}



Instruments MIDI[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/midi-instruments


Syntaxe

\set Staff.midiInstrument = #"glockenspiel"


Code

<score vorbis="1">
{
\clef bass

\set Staff.midiInstrument = #"acoustic bass"
c, e, g, c

\set Staff.midiInstrument = #"electric bass (pick)"
c, e, g, c

\set Staff.midiInstrument = #"acoustic grand"
c, e, g, c

\bar "|."
}
</score>


Résultat


{
\clef bass

\set Staff.midiInstrument = #"acoustic bass"
c, e, g, c

\set Staff.midiInstrument = #"electric bass (pick)"
c, e, g, c

\set Staff.midiInstrument = #"acoustic grand"
c, e, g, c

\bar "|."
}





Liaisons[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/expressive-marks-as-curves



Syntaxe

Liaison d'articulation
f4( ... a)

Liaisons de phrasé
c4\( ... d\)

Autres liaisons
\tieUp
c\repeatTie
c\laissezVibrer


Code

<score vorbis="1">
{
\clef bass

f4( g a) a8 b(
a4 g2 f4)
<c e>2( <b d>2)

\bar "||"

c4\( d( e) f(
e2) d\)

\bar "|."
}
</score>


Résultat


{
\clef bass

f4( g a) a8 b(
a4 g2 f4)
<c e>2( <b d>2)

\bar "||"

c4\( d( e) f(
e2) d\)

\bar "|."
}




Ligne rythmique[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/displaying-rhythms#showing-melody-rhythms


Syntaxe

\new RhythmicStaff


Code

<score vorbis="1">
\new RhythmicStaff {
\time 4/4

% juste pour les hampes vers le bas
\stemDown

c4 e8 f g2
r4 g g f
g1
\bar "|."
}
</score>


Résultat


\new RhythmicStaff {
\time 4/4

% juste pour les hampes vers le bas
\stemDown

c4 e8 f g2
r4 g g f
g1
\bar "|."
}


Métrique[modifier | modifier le wikicode]

pour enlever le signe de mesure

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/modifying-context-plug_002dins.fr.html


Syntaxe

\new Staff \with { \remove "Time_signature_engraver" }


Code

<score>
{
\new Staff \with { \remove "Time_signature_engraver" }
\clef bass

c4 d e d c4

\bar "|."
}
</score>


Résultat


{
\new Staff \with { \remove "Time_signature_engraver" }
\clef bass

c4 d e d c4

\bar "|."
}



Musique non mesurée[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/displaying-rhythms#unmetered-music


Syntaxe

\cadenzaOn


Code

<score vorbis="1">
{
\clef bass
c4 d e d
\cadenzaOn
c4 c d16[ e f g a g f e d cis d e] f4 g4.
\cadenzaOff
\bar "|"
d4 e d c
}
</score>


Résultat


{
\clef bass
c4 d e d
\cadenzaOn
c4 c d16[ e f g a g f e d cis d e] f4 g4.
\cadenzaOff
\bar "|"
d4 e d c
}



Paroles[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-vocal-music#automatic-syllable-durations



Code

<score vorbis="1">
{
\clef treble
\time 4/4

<<
\new Voice = "melodie" {
a1 a4. a8 a2
\bar "|."
}

\new Lyrics \lyricsto "melodie" {
Ce sont les mots
}
>>

\bar "|."
}
</score>

Résultat


{
\clef treble
\time 4/4

<<
\new Voice = "melodie" {
a1 a4. a8 a2
\bar "|."
}

\new Lyrics \lyricsto "melodie" {
Ce sont les mots
}
>>

\bar "|."
}



Autre exemple


  <<
    \new Staff = "staff" {
      \new Voice = "melody" {
        \relative c'' { c4 c c c }
      }
    }
    \new Lyrics \with { alignAboveContext = "staff" } {
      \lyricsto "melody" {
        Here are the words
      }
    }
  >>




Percussion (clef)[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-percussion#basic-percussion-notation


Code

<score vorbis="1">
{
\clef percussion
\time 4/4

c'8 c' \times 2/3{c'8 c' c' } c'8 c' \times 2/3{c'4 c'8 }
c'8 c' \times 2/3{c'8 c'4 } c'8 c' \times 2/3{r4 c'8 }
c'8 c' \times 2/3{r8 c' c' } c'8 c' \times 2/3{r8 c'4 }
r8 c' \times 2/3{c'8 c' c' } r8 c' \times 2/3{c'4 c'8 }
r8 c' \times 2/3{c'8 c'4 } r8 c' \times 2/3{r4 c'8 }

\bar "|."
}
</score>

Résultat


{
\clef percussion
\time 4/4

c'8 c' \times 2/3{c'8 c' c' } c'8 c' \times 2/3{c'4 c'8 }
c'8 c' \times 2/3{c'8 c'4 } c'8 c' \times 2/3{r4 c'8 }
c'8 c' \times 2/3{r8 c' c' } c'8 c' \times 2/3{r8 c'4 }
r8 c' \times 2/3{c'8 c' c' } r8 c' \times 2/3{c'4 c'8 }
r8 c' \times 2/3{c'8 c'4 } r8 c' \times 2/3{r4 c'8 }

\bar "|."
}



Percussion (écriture)[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-percussion http://lilypond.org/doc/v2.18/Documentation/notation/percussion-notes



Syntaxe

\drums { ... }


Code

<score vorbis="1">
\drums {

bd bd 
sn sn 
tommh tomml 
tomfl tomfh

hhc hhc hhc hhc 
hh hh hh hh 
hhp hhp hhp hhp 
\bar "|."
}
</score>


Résultat


\drums {

bd bd 
sn sn 
tommh tomml 
tomfl tomfh

hhc hhc hhc hhc 
hh hh hh hh 
hhp hhp hhp hhp 
\bar "|."
}





Portées multiples[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-keyboards


Il y a deux façons de faire :


Code 1

<score vorbis="1">
{

<<
\new Staff {
\clef treble
< e' c'' >1
}

\new Staff {
\clef bass
< c g >1
}
>>

\bar "|."
}
</score>


Résultat 1


{

<<
\new Staff {
\clef treble
< e' c'' >1
}

\new Staff {
\clef bass
< c g >1
}
>>

\bar "|."
}


Code 2

<score vorbis="1">
{
\new PianoStaff
<<

\new Staff = "up" {
\clef treble
< e' c'' >1
}

\new Staff = "down" {
\clef bass
< c g >1
}

>>

\bar "|."
}
</score>


Résultat 2


{
\new PianoStaff
<<

\new Staff = "up" {
\clef treble
< e' c'' >1
}

\new Staff = "down" {
\clef bass
< c g >1
}

>>

\bar "|."
}



Répétitions de mesure[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.19/Documentation/notation/short-repeats#short-repeats


Syntaxe

\makePercent


Code

<score vorbis="1">
{
\clef bass

\repeat percent 2 { c4 d e f }
\repeat percent 2 { c2 d }
\repeat percent 2 { c1 }

\bar "||"

\break

\clef treble

\relative c'' {
  \set countPercentRepeats = ##t
  \repeat percent 4 { c1 }
}

}
</score>


Résultat


{
\clef bass

\repeat percent 2 { c4 d e f }
\repeat percent 2 { c2 d }
\repeat percent 2 { c1 }

\bar "||"

\break

\clef treble

\relative c'' {
  \set countPercentRepeats = ##t
  \repeat percent 4 { c1 }
}

}



Répétitions de motifs[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats#written_002dout-repeats



Syntaxe

\repeat unfold nombre_de_fois { expression_musicale }


Code

<score vorbis="1">
{
\clef treble

\repeat unfold 9 {c'8 d' e' g' a' }
\repeat unfold 9 {c'8[ d' e' g' a'] }
c'

\bar "|."
}
</score>



Résultat


{
\clef treble

\repeat unfold 9 {c'8 d' e' g' a' }
\repeat unfold 9 {c'8[ d' e' g' a'] }
c'

\bar "|."
}



Répétitions de sections[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats#normal-repeats



Syntaxe

\repeat volta nombre_de_fois expression_musicale


Code

<score vorbis="1">
{
\clef bass

\repeat volta 2 { c4 d e f }
c2 d
\repeat volta 2 { d4 e f g }

\repeat volta 2 { c4 d e f | }
\alternative {
  { c2 e | }
  { f2 g | }
}
c1

}
</score>

<score vorbis="1">
{
\clef bass

\partial 4 % required
\repeat volta 4 {
  e4 |
  c2 e |
  % no \partial here
  g4 g g  % no bar check here
}
% no \partial here
g4 |
a2 a |
g1 |

}
</score>



Résultat


{
\clef bass

\repeat volta 2 { c4 d e f }
c2 d
\repeat volta 2 { d4 e f g }

\repeat volta 2 { c4 d e f | }
\alternative {
  { c2 e | }
  { f2 g | }
}
c1

}

{
\clef bass

\partial 4 % required
\repeat volta 4 {
  e4 |
  c2 e |
  % no \partial here
  g4 g g  % no bar check here
}
% no \partial here
g4 |
a2 a |
g1 |

}



Silences[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.22/Documentation/notation/writing-rests



Syntaxe

<score>
{
\clef bass

a4\rest d4\rest
c4 c s c
s2 c r2
r1
R1
\compressMMRests
R1*2
R1*10
R1*15
}
</score>


'''Code'''

<syntaxhighlight lang="text">
<score>
{
\clef bass

a4\rest d4\rest
c4 c s c
s2 c r2
r1
R1
\compressMMRests
R1*2
R1*10
R1*15
}
</score>


Résultat


{
\clef bass

a4\rest d4\rest
c4 c s c
s2 c r2
r1
R1
\compressMMRests
R1*2
R1*10
R1*15
}



Tablature[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-fretted-strings#index-TabStaff-4

http://www.lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-fretted-strings#default-tablatures



Syntaxe

\new TabStaff


Code

<score vorbis="1">
<<

\relative c' {
\clef bass
  a,8 a' <c e> a
  d,8 a' <d f> a
}

\new TabStaff \relative c' {
  a,8 a' <c e> a
  d,8 a' <d f> a
}

>>
</score>


Résultat


<<

\relative c' {
\clef bass
  a,8 a' <c e> a
  d,8 a' <d f> a
}

\new TabStaff \relative c' {
  a,8 a' <c e> a
  d,8 a' <d f> a
}

>>



Autre exemple


  \new TabStaff {
    \tabFullNotation
  \time 3/4
  c4-.^"Allegro" d( e)
  f4-.\f g a^\fermata
  \mark \default
  c8_.\<\( c16 c ~ c2\!
  c'2.\prall\)
  }

Tablature pour la basse

<score lang="lilypond">
\new TabStaff \with {
    stringTunings = #bass-tuning
  } {
    \relative {
    c4 d e f 
    }
}
</score>


\new TabStaff \with {
    stringTunings = #bass-tuning
  } {
       \relative {
      c,4 d e f 
    }
}


Tempo (indications)[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/learning/simple-notation#tempo-marks


Syntaxe

\tempo


Code

<score vorbis="1">
{
\clef treble
\relative c'' {
  \time 3/4
  \tempo "Andante"
  a4 a a
  \time 6/8
  \tempo 4. = 96
  a4. a
  \time 4/4
  \tempo  "Presto" 4 = 120
  a4 a a a
}
r1
\bar "|."
}
</score>


Résultat


{
\clef treble
\relative c'' {
  \time 3/4
  \tempo "Andante"
  a4 a a
  \time 6/8
  \tempo 4. = 96
  a4. a
  \time 4/4
  \tempo  "Presto" 4 = 120
  a4 a a a
}
r1
\bar "|."
}



Triolet[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/writing-rhythms#tuplets


Syntaxe

\times fraction { expression_musicale }


Code

<score vorbis="1">
{
\clef bass

\times 2/3{ b8 c d } e8 f \times 2/3{ g4 a8 }
b8 c \times 2/3{ d8 e4 } f8 g \times 2/3{ r4 a8 }
b8 c \times 2/3{ r8 d e } f8 e \times 2/3{ r8 d4 }
r8 c \times 2/3{ b8 a g } r8 f \times 2/3{ e4 d8 } r4

\bar "|."
}
</score>


Résultat


{
\clef bass

\times 2/3{ b8 c d } e8 f \times 2/3{ g4 a8 }
b8 c \times 2/3{ d8 e4 } f8 g \times 2/3{ r4 a8 }
b8 c \times 2/3{ r8 d e } f8 e \times 2/3{ r8 d4 }
r8 c \times 2/3{ b8 a g } r8 f \times 2/3{ e4 d8 } r4

\bar "|."
}


Fonctions avancées[modifier | modifier le wikicode]

Accord : mode[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/chord-mode


Syntaxe

\chordmode


Code

<score vorbis="1">
{
\clef treble
\chordmode { c2 g f g c1 }
\bar "|."
}
</score>


Résultat


{
\clef treble
\chordmode { c2 g f g c1 }
\bar "|."
}



Accords : notation[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/learning/combining-notes-into-chords

http://www.lilypond.org/doc/v2.18/Documentation/notation/common-chord-modifiers



Code source

<score vorbis="1">
{
\clef treble
\textLengthOn
 
e''1_"(3ce)"^\markup { \null \raise #1 { \bold { C \small \raise #1.0 { 7 } } } }
cis''_"(3ce)"^\markup { \null \raise #1 { \bold { A \small \raise #1.0 { 7 } } } }
c''?_"(7e)"^\markup { \null \raise #1 { \bold { D m \small \raise #1.0 { 7 } } } }
b'_"(3ce)"^\markup { \null \raise #1 { \bold { G \small \raise #1.0 { 7 } } } }
b'_"(7e)"^\markup { \null \raise #1 { \bold { C \small \raise #1.0 { M7 } } } }
 
\bar "|."
}
</score>


Résultat


{
\clef treble
\textLengthOn
 
e''1_"(3ce)"^\markup { \null \raise #1 { \bold { C \small \raise #1.0 { 7 } } } }
cis''_"(3ce)"^\markup { \null \raise #1 { \bold { A \small \raise #1.0 { 7 } } } }
c''?_"(7e)"^\markup { \null \raise #1 { \bold { D m \small \raise #1.0 { 7 } } } }
b'_"(3ce)"^\markup { \null \raise #1 { \bold { G \small \raise #1.0 { 7 } } } }
b'_"(7e)"^\markup { \null \raise #1 { \bold { C \small \raise #1.0 { M7 } } } }
 
\bar "|."
}




Attribut pour 'score'[modifier | modifier le wikicode]

Source

https://www.mediawiki.org/wiki/Extension:Score


Syntaxe

<score raw="1" lang="lilypond">


Explications

Paramètre : raw

Valeur : 0 (default), 1

Si on indique raw="1", le code de la partition est interprété pour produire une partition complète. Utilisez cette option si vous voulez créer des partitions plus complexes.

Si le paramètre langage (lang) n’est pas "lilypond", cet attribut est ignoré. Donc il faut bien écrire :

<score raw="1" lang="lilypond">


Basse chiffrée[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/figured-bass#entering-figured-bass


Code source Résultat
<score vorbis="1">
{
\clef bass

<<
c2.

\figures {
  <7! 6+ 4->4 <5++> <3-->
}
>>

<<
  \new Voice { \clef bass dis4 c d ais g fis}
  \new FiguredBass {
    \figuremode {
      < 6 >4 < 7\+ >8 < 6+ [_!] >
      < 6 >4 <6 5 [3+] >
      < _ >4 < 6 5/>4
    }
  }
>>

r4 r2

<<
  {
    \clef bass
    e4 d c b,
    e4 d c b,
  }
  \figures {
    \bassFigureExtendersOn
    <6 4>4 <6 3> <7 3> <7 3>
    \bassFigureExtendersOff
    <6 4>4 <6 3> <7 3> <7 3>
  }
>>

\bar "|."
}
</score>

{
\clef bass

<<
c2.

\figures {
  <7! 6+ 4->4 <5++> <3-->
}
>>

<<
  \new Voice { \clef bass dis4 c d ais g fis}
  \new FiguredBass {
    \figuremode {
      < 6 >4 < 7\+ >8 < 6+ [_!] >
      < 6 >4 <6 5 [3+] >
      < _ >4 < 6 5/>4
    }
  }
>>

r4 r2

<<
  {
    \clef bass
    e4 d c b,
    e4 d c b,
  }
  \figures {
    \bassFigureExtendersOn
    <6 4>4 <6 3> <7 3> <7 3>
    \bassFigureExtendersOff
    <6 4>4 <6 3> <7 3> <7 3>
  }
>>

\bar "|."
}



Découpage automatique des notes[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.19/Documentation/notation/displaying-rhythms#automatic-note-splitting



Syntaxe

\new Voice \with {
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
\remove "Rest_engraver"
\consists "Completion_rest_engraver"
}


Code

<score >
{
\clef bass

\new Voice \with {
  \remove "Note_heads_engraver"
  \consists "Completion_heads_engraver"
  \remove "Rest_engraver"
  \consists "Completion_rest_engraver"
}

c2. c8 d4 e f g a b c8 c2 b4 a g16 f4 e d c8. c2 r1*2

}
</score>


Résultat


{
\clef bass

\new Voice \with {
  \remove "Note_heads_engraver"
  \consists "Completion_heads_engraver"
  \remove "Rest_engraver"
  \consists "Completion_rest_engraver"
}

c2. c8 d4 e f g a b c8 c2 b4 a g16 f4 e d c8. c2 r1*2

}




Imitation par mouvement contraire[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/changing-multiple-pitches#inversion


Syntaxe

\inversion hauteur-pivot hauteur-arrivée expression_musicale


Code

<score vorbis="1">
{
\clef treble

\relative c' { c8 d e f g a b c }
\inversion c' c' \relative c' { c8^"c'" d e f g a b c }
\inversion c' e' \relative c' { c8^"e'" d e f g a b c }
\inversion c' a' \relative c' { c8^"a'" d e f g a b c }
\inversion c' c'' \relative c' { c8^"c''" d e f g a b c }

\bar "|."
}
</score>


Résultat


{
\clef treble

\relative c' { c8 d e f g a b c }
\inversion c' c' \relative c' { c8^"c'" d e f g a b c }
\inversion c' e' \relative c' { c8^"e'" d e f g a b c }
\inversion c' a' \relative c' { c8^"a'" d e f g a b c }
\inversion c' c'' \relative c' { c8^"c''" d e f g a b c }

\bar "|."
}



Imitation par mouvement contraire (inversion modale)[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/changing-multiple-pitches#index-modalInversion-1


Syntaxe

\modalInversion hauteur-pivot hauteur-arrivée gamme motif


Code

<score vorbis="1">
{
\clef bass

{ c8 d e f g a b c' }
\modalInversion g g { c d e f g a b } { c8 d e f g a b c' }

\bar "|."
}
</score>


Résultat


{
\clef bass

{ c8 d e f g a b c' }
\modalInversion g g { c d e f g a b } { c8 d e f g a b c' }

\bar "|."
}



Imitation par mouvement rétrograde[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/changing-multiple-pitches#retrograde



Syntaxe

\retrograde


Code

<score vorbis="1">
{
\clef bass
\time 3/4

c4 d8 e f g a2 b4
\retrograde { c4 d8 e f g a2 b4 }

\bar "|."
}
</score>


Résultat


{
\clef bass
\time 3/4

c4 d8 e f g a2 b4
\retrograde { c4 d8 e f g a2 b4 }

\bar "|."
}




Instanciation explicite des voix[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/learning/explicitly-instantiating-voices#index-shift_002c-commandes


Syntaxe

Les contextes Voice peuvent être déclarés manuellement dans un bloc << >> pour créer de la musique polyphonique, en utilisant \voiceOne… jusqu’à \voiceFour pour assigner des directions de hampes et un déplacement horizontal pour chaque partie. Cette méthode apporte de la clarté pour des partitions plus importantes puisqu’elle permet de bien séparer les voix et de leur affecter un nom plus parlant.

En particulier, la construction << \\ >> que nous avons vue précédemment :


Code

<score vorbis="1">
{
\new Staff {
  \relative c' {
    << { e4 f g a } \\ { c,4 d e f } >>
  }
}

\new Staff <<
  \new Voice = "1" { \voiceOne \relative c' { e4 f g a } }
  \new Voice = "2" { \voiceTwo \relative c' { c4 d e f } }
>>

\new Staff \relative c' {
  c16^( d e f
  <<
    { g4 f e | d2 e) | }
    \new Voice {
      \voiceTwo
      r8 e4 d c8~ |
      <<
        { c8 b16 a b8 g~ g2 | }
        \new Voice {
          \voiceThree
          s4 b c2 |
        }
      >>
    }
  >>
}

\new Staff \relative c' <<
  % Initiate first voice
  \new Voice {
    \voiceOne
    c16^( d e f g4 f e | d2 e2) |
  }
  % Initiate second voice
  \new Voice {
    % Set stems, etc, down
    \voiceTwo
    s4 r8 e4 d c8 ~ | c8 b16 a b8 g ~ g2 |
  }
  % Initiate third voice
  \new Voice {
    % Set stems, etc, up
    \voiceThree
    s1 | s4 b4 c2 |
  }
>>

\bar "|."
}
</score>


Résultat


{
\new Staff {
  \relative c' {
    << { e4 f g a } \\ { c,4 d e f } >>
  }
}

\new Staff <<
  \new Voice = "1" { \voiceOne \relative c' { e4 f g a } }
  \new Voice = "2" { \voiceTwo \relative c' { c4 d e f } }
>>

\new Staff \relative c' {
  c16^( d e f
  <<
    { g4 f e | d2 e) | }
    \new Voice {
      \voiceTwo
      r8 e4 d c8~ |
      <<
        { c8 b16 a b8 g~ g2 | }
        \new Voice {
          \voiceThree
          s4 b c2 |
        }
      >>
    }
  >>
}

\new Staff \relative c' <<
  % Initiate first voice
  \new Voice {
    \voiceOne
    c16^( d e f g4 f e | d2 e2) |
  }
  % Initiate second voice
  \new Voice {
    % Set stems, etc, down
    \voiceTwo
    s4 r8 e4 d c8 ~ | c8 b16 a b8 g ~ g2 |
  }
  % Initiate third voice
  \new Voice {
    % Set stems, etc, up
    \voiceThree
    s1 | s4 b4 c2 |
  }
>>

\bar "|."
}



Texte[modifier | modifier le wikicode]

Texte de base[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/writing-text


Code

<score vorbis="1">
{
a8^"pizz." g f e a4-"scherz." f

a8^\markup { \italic pizz. } g f e
a4_\markup { \tiny scherz. \bold molto } f

a8^"pizz." g f e
\textLengthOn
a4_"scherzando" f
}
</score>


Résultat


\relative c'' {
a8^"pizz." g f e a4-"scherz." f

a8^\markup { \italic pizz. } g f e
a4_\markup { \tiny scherz. \bold molto } f

a8^"pizz." g f e
\textLengthOn
a4_"scherzando" f
}



Alignement[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/formatting-text#text-alignment



Syntaxe

\mark \markup { \null \translate #'(2 . 2) { ... } }
ou
a^\markup { \null \translate #'(-2 . 2) { ... } }


Code

<score vorbis="1">
{
\clef bass
\textLengthOn

\mark \markup { \null \translate #'(20 . 2) { Basse en rondes } }

d1^\markup { \null \translate #'(-1 . 2) { \note {4} #1 = \note-by-number #1 #1 #1.5 } }

e^\markup { \null \translate #'(-1 . 3) { 
\note {4} #1 
\note {4} #-1 
\note {4} #0 
\note {8} #1 
\note {16} #1
\note {32} #1 
} }

d^\markup { \raise #1 { \bold { C \small \raise #1.0 { 7 } } } }

g^\markup { \null \translate #'(-1 . 2) { \bold { C \small \raise #1.0 { 7 } } } }

a^\markup { \null \translate #'(-1 . 3) { \bold { C \small \raise #1.0 { 7 } } } }

b^\markup { \null \translate #'(-1 . 4) { \bold { C \small \raise #1.0 { 7 } } } }

a^\markup { \null \translate #'(-2 . 2) { \bold { C \small \raise #1.0 { 7 } } } }

g^\markup { \null \translate #'(-2 . 3) { \bold { C \small \raise #1.0 { 7 } } } }

f^\markup { \null \translate #'(-2 . 4) { \bold { C \small \raise #1.0 { 7 } } } }


e_\markup { \null \translate #'(-2 . -1) { \bold { C \small \raise #1.0 { 7 } } } }

d_\markup { \null \translate #'(-2 . -2) { \bold { C \small \raise #1.0 { 7 } } } }

c_\markup { \null \translate #'(-2 . -3) { \bold { C \small \raise #1.0 { 7 } } } }

\mark \markup { \null \translate #'(1 . 1) { { D.C. } } }

\bar "|."
}</score>


Résultat



{
\clef bass
\textLengthOn

\mark \markup { \null \translate #'(20 . 2) { Basse en rondes } }

d1^\markup { \null \translate #'(-1 . 2) { \note {4} #1 = \note-by-number #1 #1 #1.5 } }

e^\markup { \null \translate #'(-1 . 3) { 
\note {4} #1 
\note {4} #-1 
\note {4} #0 
\note {8} #1 
\note {16} #1
\note {32} #1 
} }

d^\markup { \raise #1 { \bold { C \small \raise #1.0 { 7 } } } }

g^\markup { \null \translate #'(-1 . 2) { \bold { C \small \raise #1.0 { 7 } } } }

a^\markup { \null \translate #'(-1 . 3) { \bold { C \small \raise #1.0 { 7 } } } }

b^\markup { \null \translate #'(-1 . 4) { \bold { C \small \raise #1.0 { 7 } } } }

a^\markup { \null \translate #'(-2 . 2) { \bold { C \small \raise #1.0 { 7 } } } }

g^\markup { \null \translate #'(-2 . 3) { \bold { C \small \raise #1.0 { 7 } } } }

f^\markup { \null \translate #'(-2 . 4) { \bold { C \small \raise #1.0 { 7 } } } }


e_\markup { \null \translate #'(-2 . -1) { \bold { C \small \raise #1.0 { 7 } } } }

d_\markup { \null \translate #'(-2 . -2) { \bold { C \small \raise #1.0 { 7 } } } }

c_\markup { \null \translate #'(-2 . -3) { \bold { C \small \raise #1.0 { 7 } } } }

\mark \markup { \null \translate #'(1 . 1) { { D.C. } } }

\bar "|."
}



Chiffres[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/writing-text


Code

<score>
{
c'4^\markup { \null \raise #2 { \number 1 } }
}
</score>


Résultat


{
c'4^\markup { \null \raise #2 { \number 1 } }
}




Justification[modifier | modifier le wikicode]

Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/align


Syntaxe

s_\markup {
\fontsize #1.5
\override #'(line-width . 50)
\justify-string #" ... " }


Code

<score vorbis="1">
{
\clef treble

s_\markup {
\fontsize #1.5
\override #'(line-width . 50)
\justify-string #"
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
" }

\bar "|."
}
</score>


Résultat


{
\clef treble

s_\markup {
\fontsize #1.5
\override #'(line-width . 50)
\justify-string #"
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
" }

\bar "|."
}


Mise en forme[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.18/Documentation/notation/writing-text


Voir aussi

http://lilypond.org/doc/v2.18/Documentation/notation/formatting-text#page-wrapping-text



Syntaxe

\textLengthOn

c4^\markup { \null \raise #2 { \number 2 } }


Code

<score vorbis="1">
\relative c' {
\textLengthOn
c2^"Text1 "
d2^"Text2" |
e2^"Text3"
f2^"Text4" |


c4^\markup { \null \raise #2 { \number 2 } }
}
</score>


Résultat sans


\relative c' {
c2^"Text1 "
d2^"Text2" |
e2^"Text3"
f2^"Text4" |
}


Résultat avec


\relative c' {
\textLengthOn
c2^"Text1 "
d2^"Text2" |
e2^"Text3"
f2^"Text4" |


c4^\markup { \null \raise #2 { \number 2 } }
}




Transposition[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.19/Documentation/source/Documentation/notation/changing-multiple-pitches.fr.html#transpose


Syntaxe

\transpose note_de_départ note_d_arrivée { expression_musicale }


Code source Résultat
<score vorbis="1">
{
\clef treble
\transpose c c' { c8 d e f g a b c' }
\transpose c d' { c8 d e f g a b c' }
\transpose c g' { c8 d e f g a b c' }
\transpose c c' { c8 d e f g a b c' }

\bar "|."
}
</score>

{
\clef treble
\transpose c c' { c8 d e f g a b c' }
\transpose c d' { c8 d e f g a b c' }
\transpose c g' { c8 d e f g a b c' }
\transpose c c' { c8 d e f g a b c' }

\bar "|."
}


Autre exemple

<score vorbis="1">
{
\clef treble

\transpose c c' { c8^\markup { \null \raise #1 \bold { C } } d e f g a b c' b a g f e d c4 }
\transpose c f' { c8^\markup { \null \raise #1 \bold { F } } d e f g a b c' b a g f e d c4 }
\transpose c bes { c8^\markup { \null \raise #1 \bold { Bb } } d e f g a b c' b a g f e d c4 }
\transpose c ees' { c8^\markup { \null \raise #1 \bold { Eb } } d e f g a b c' b a g f e d c4 }
\transpose c aes { c8^\markup { \null \raise #1 \bold { Ab } } d e f g a b c' b a g f e d c4 }
\transpose c des' { c8^\markup { \null \raise #1 \bold { Db } } d e f g a b c' b a g f e d c4 }
\transpose c ges { c8^\markup { \null \raise #1 \bold { Gb } } d e f g a b c' b a g f e d c4 }
\transpose c b { c8^\markup { \null \raise #1 \bold { B } } d e f g a b c' b a g f e d c4 }
\transpose c e' { c8^\markup { \null \raise #1 \bold { E } } d e f g a b c' b a g f e d c4 }
\transpose c a { c8^\markup { \null \raise #1 \bold { A } } d e f g a b c' b a g f e d c4 }
\transpose c d' { c8^\markup { \null \raise #1 \bold { D } } d e f g a b c' b a g f e d c4 }
\transpose c g { c8^\markup { \null \raise #1 \bold { G } } d e f g a b c' b a g f e d c4 }

\bar "|."
}
</score>



{
\clef treble

\transpose c c' { c8^\markup { \null \raise #1 \bold { C } } d e f g a b c' b a g f e d c4 }
\transpose c f' { c8^\markup { \null \raise #1 \bold { F } } d e f g a b c' b a g f e d c4 }
\transpose c bes { c8^\markup { \null \raise #1 \bold { Bb } } d e f g a b c' b a g f e d c4 }
\transpose c ees' { c8^\markup { \null \raise #1 \bold { Eb } } d e f g a b c' b a g f e d c4 }
\transpose c aes { c8^\markup { \null \raise #1 \bold { Ab } } d e f g a b c' b a g f e d c4 }
\transpose c des' { c8^\markup { \null \raise #1 \bold { Db } } d e f g a b c' b a g f e d c4 }
\transpose c ges { c8^\markup { \null \raise #1 \bold { Gb } } d e f g a b c' b a g f e d c4 }
\transpose c b { c8^\markup { \null \raise #1 \bold { B } } d e f g a b c' b a g f e d c4 }
\transpose c e' { c8^\markup { \null \raise #1 \bold { E } } d e f g a b c' b a g f e d c4 }
\transpose c a { c8^\markup { \null \raise #1 \bold { A } } d e f g a b c' b a g f e d c4 }
\transpose c d' { c8^\markup { \null \raise #1 \bold { D } } d e f g a b c' b a g f e d c4 }
\transpose c g { c8^\markup { \null \raise #1 \bold { G } } d e f g a b c' b a g f e d c4 }

\bar "|."
}


Transposition sur un mode[modifier | modifier le wikicode]

Source

http://lilypond.org/doc/v2.19/Documentation/source/Documentation/notation/changing-multiple-pitches#modal-transformations


Syntaxe

\modalTranspose hauteur-départ hauteur-arrivée { mode } { motif }


Sur une gamme "classique"[modifier | modifier le wikicode]

Code

<score vorbis="1">
{
\clef treble

\modalTranspose c	c'	 { c d e f g a b } { c8 d e f }
\modalTranspose c	d'	 { c d e f g a b } { c d e f }
\modalTranspose c	e'	 { c d e f g a b } { c d e f }
\modalTranspose c	f'	 { c d e f g a b } { c d e f }
\modalTranspose c	g'	 { c d e f g a b } { c d e f }
\modalTranspose c	a'	 { c d e f g a b } { c d e f }
\modalTranspose c	b'	 { c d e f g a b } { c d e f }
\modalTranspose c	c''	 { c d e f g a b } { c d e f }
\modalTranspose c	d''	 { c d e f g a b } { c d e f }
\modalTranspose c	e''	 { c d e f g a b } { c d e f }
\modalTranspose c	f''	 { c d e f g a b } { c d e f }
\modalTranspose c	g''	 { c d e f g a b } { c d e f }
\modalTranspose c	c'''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	b''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	a''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	g''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	f''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	e''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	d''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	c''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	b'	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	a'	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	g'	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	f'	 { c d e f g a b } { c b, a, g,~ }

c'1

\bar "|."
}
</score>


Résultat


{
\clef treble

\modalTranspose c	c'	 { c d e f g a b } { c8 d e f }
\modalTranspose c	d'	 { c d e f g a b } { c d e f }
\modalTranspose c	e'	 { c d e f g a b } { c d e f }
\modalTranspose c	f'	 { c d e f g a b } { c d e f }
\modalTranspose c	g'	 { c d e f g a b } { c d e f }
\modalTranspose c	a'	 { c d e f g a b } { c d e f }
\modalTranspose c	b'	 { c d e f g a b } { c d e f }
\modalTranspose c	c''	 { c d e f g a b } { c d e f }
\modalTranspose c	d''	 { c d e f g a b } { c d e f }
\modalTranspose c	e''	 { c d e f g a b } { c d e f }
\modalTranspose c	f''	 { c d e f g a b } { c d e f }
\modalTranspose c	g''	 { c d e f g a b } { c d e f }
\modalTranspose c	c'''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	b''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	a''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	g''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	f''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	e''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	d''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	c''	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	b'	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	a'	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	g'	 { c d e f g a b } { c b, a, g, }
\modalTranspose c	f'	 { c d e f g a b } { c b, a, g,~ }

c'1

\bar "|."
}



Sur une gamme pentatonique[modifier | modifier le wikicode]

Code

<score vorbis="1">
{
\clef treble

\modalTranspose c 	c'	 { c d e g a } { c8 d e }
\modalTranspose c 	d'	 { c d e g a } { c8 d e }
\modalTranspose c 	e'	 { c d e g a } { c8 d e }
\modalTranspose c 	g'	 { c d e g a } { c8 d e }
\modalTranspose c 	a'	 { c d e g a } { c8 d e }
\modalTranspose c 	c''	 { c d e g a } { c8 d e }
\modalTranspose c 	d''	 { c d e g a } { c8 d e }
\modalTranspose c 	e''	 { c d e g a } { c8 d e }
\modalTranspose c 	g''	 { c d e g a } { c8 d e }
\modalTranspose c 	a''	 { c d e g a } { c8 d e }
\modalTranspose c 	c'''	 { c d e g a } { c8 d e }
\modalTranspose c 	a''	 { c d e g a } { c8 d e }
\modalTranspose c 	g''	 { c d e g a } { c8 d e }
\modalTranspose c 	e''	 { c d e g a } { c8 d e }
\modalTranspose c 	d''	 { c d e g a } { c8 d e }
\modalTranspose c 	c''	 { c d e g a } { c8 d e }
\modalTranspose c 	a'	 { c d e g a } { c8 d e }
\modalTranspose c 	g'	 { c d e g a } { c8 d e }
\modalTranspose c 	e'	 { c d e g a } { c8 d e }
\modalTranspose c 	d'	 { c d e g a } { c8 d e }

c'2
\bar "|."
}
</score>


Résultat


{
\clef treble

\modalTranspose c 	c'	 { c d e g a } { c8 d e }
\modalTranspose c 	d'	 { c d e g a } { c8 d e }
\modalTranspose c 	e'	 { c d e g a } { c8 d e }
\modalTranspose c 	g'	 { c d e g a } { c8 d e }
\modalTranspose c 	a'	 { c d e g a } { c8 d e }
\modalTranspose c 	c''	 { c d e g a } { c8 d e }
\modalTranspose c 	d''	 { c d e g a } { c8 d e }
\modalTranspose c 	e''	 { c d e g a } { c8 d e }
\modalTranspose c 	g''	 { c d e g a } { c8 d e }
\modalTranspose c 	a''	 { c d e g a } { c8 d e }
\modalTranspose c 	c'''	 { c d e g a } { c8 d e }
\modalTranspose c 	a''	 { c d e g a } { c8 d e }
\modalTranspose c 	g''	 { c d e g a } { c8 d e }
\modalTranspose c 	e''	 { c d e g a } { c8 d e }
\modalTranspose c 	d''	 { c d e g a } { c8 d e }
\modalTranspose c 	c''	 { c d e g a } { c8 d e }
\modalTranspose c 	a'	 { c d e g a } { c8 d e }
\modalTranspose c 	g'	 { c d e g a } { c8 d e }
\modalTranspose c 	e'	 { c d e g a } { c8 d e }
\modalTranspose c 	d'	 { c d e g a } { c8 d e }

c'2
\bar "|."
}



Fonctions non implémentées[modifier | modifier le wikicode]

Succession de durées individuelles[modifier | modifier le wikicode]

Lorsque une note ou un accord est suivi d’une succession de durées individuelles, celles-ci adopteront la ou les dernières hauteurs mentionnées.

Code

{ \clef treble c'1 2 4 8 16 32 32 \bar "|." }


Résultat



{
\clef treble

c'1 2 4 8 16 32 32
\bar "|."
}

Têtes de notes en forme de croix[modifier | modifier le wikicode]

Code

{ \clef treble \override NoteHead.style = #'cross c'1 2 4 4 \bar "|." }


Résultat

 
{ \clef treble 
\override NoteHead.style = #'cross 
c'1 2 4 4 \bar "|." 
}

Variables[modifier | modifier le wikicode]

NB. Les variables ne fonctionnent qu'avec l'option 'partition complète', c'est-à-dire avec la syntaxe <score raw="1" lang="lilypond">.


Source

http://www.lilypond.org/doc/v2.18/Documentation/notation/techniques-specific-to-lyrics#working-with-lyrics-and-variables


Code

<score raw="1" lang="lilypond">
musicOne = \relative c'' {
  c4 b8. a16 g4. f8 e4 d c2
}
verseOne = \lyricmode {
  Joy to the world, the Lord is come.
}
\score {
  <<
    \new Voice = "one" {
      \time 2/4
      \musicOne
    }
    \new Lyrics \lyricsto "one" {
      \verseOne
    }
  >>
}
</score>


Résultat


musicOne = \relative c'' {
  c4 b8. a16 g4. f8 e4 d c2
}
verseOne = \lyricmode {
  Joy to the world, the Lord is come.
}
\score {
  <<
    \new Voice = "one" {
      \time 2/4
      \musicOne
    }
    \new Lyrics \lyricsto "one" {
      \verseOne
    }
  >>
}


Notes & références[modifier | modifier le wikicode]



Ressources[modifier | modifier le wikicode]