This is an archive copy of wikilivres.ca as of 18 February 2017 (from the WikiTeam dump). The original site is closed.
Wikilivres:Lilypond/Syntax examples
Example — Syntax — Description
<lilypond> 1 2 8 16 </lilypond> 1 2 8 16 durations
<lilypond> c4. c4.. </lilypond> c4. c4.. augmentation dots
<lilypond>c d e f g a b </lilypond> c d e f g a b scale
<lilypond> fis bes </lilypond> fis bes alteration
<lilypond> \clef treble \clef bass </lilypond> \clef treble \ clef bassclefs
<lilypond> \time 3/4 \time 4/4 </lilypond> \time 3/4 \time 4/4 time signature
<lilypond> r4 r8 </lilypond> r4 r8 rest
<lilypond> d ~ d </lilypond> d ~ d tie
<lilypond> \key es \major </lilypond> <nowiki>\key es \majorkey signature
<lilypond> note' </lilypond> <nowiki> note' raise octave
<lilypond> note, </lilypond> <nowiki>note, lower octave
<lilypond> c( d e) </lilypond> c( d e) slur
<lilypond> c\( c( d) e\) </lilypond> c\( c( d) e\) phrasing slur
<lilypond> a8[ b] </lilypond> a8[ b] beam
<lilypond> << \new Staff ... >> </lilypond> << \new Staff ... >> more staves
<lilypond> c-> c-. </lilypond> c-> c-. articulations
<lilypond> c\mf c\sfz </lilypond> c\mf c\sfz dynamics
<lilypond> a\< a a\! </lilypond> a\< a a\! crescendo
<lilypond> a\> a a\! </lilypond> a\> a a\! decrescendo
<lilypond> < > </lilypond> < > chord
<lilypond> \partial 8 </lilypond> \partial 8 upstep
<lilypond> \times 2/3 {f g a} </lilypond> \times 2/3 {f g a} triplets
<lilypond> \grace </lilypond> \grace grace notes
<lilypond> \lyricmode { twinkle } </lilypond> \lyricmode entering lyrics twinkle
<lilypond> \new Lyrics </lilypond> \new Lyrics printing lyrics
<lilypond> twin -- kle </lilypond> twin -- kle lyric hyphen
<lilypond> \chordmode { c:dim f:maj7 } </lilypond> \chordmode chords
<lilypond> \context ChordNames </lilypond> \context ChordNames printing chord names
<lilypond> <<{e f} \\ {c d}>> </lilypond> <<{e f} \\ {c d}>> polyphony
<lilypond> s4 s8 s16 </lilypond> s4 s8 s16 rests spacer