Score examples

From Jon's Wiki

See also: Score examples SVG

Note 1
This wiki applies a solid white background to all Score output, as a temporary fix for otherwise unreadable transparent PNG images when in dark-mode.
Note 2
To yoink Lilypond snippets from Wikipedia articles, see Special:PagesWithProp and search for the "score" property.


From Cadence:


   \new PianoStaff <<
      \new Staff <<
         \new Voice \relative c'' {
             \stemUp \clef treble \key e \minor \time 4/4
             \partial2 b4 b a g fis2 e1
             }
         \new Voice \relative c' {
             \stemDown
              \partial2 e4 e8 dis e fis g e e4 dis b1
              }
            >>
     \new Staff <<
         \new Voice \relative c' {
             \stemUp \clef bass \key e \minor \time 4/4
             \partial2 g8 a b4 c b cis b8 a! gis1
             }
         \new Voice \relative c {
             \stemDown
             \partial2 e8 fis g e c d e c ais4 b e,1
             }
         >>
    >>

Multi-system input

From String Quartet No. 1 (Górecki)


{
 \relative {
 \key c \minor
 \clef "treble_(8)"
 \time 4/4
    c'1 as2 bes2 c2 c2 es2 d2 c1 es1 f2 es2
    d2 c2 c2 bes2 c1 c1 f2 d2 es2 g2 f2 es2 f1
    f1 bes,2 c2 d2 es2 f2 d2 c1 c1 bes2 as2 bes2 g2
    as2 bes2 g1 f1 as2 bes2 c2 as2 bes2 g2 f1
}
 \addlyrics {
        Już się zmierz -- cha, nad -- cho -- dzi noc, po -- pro -- śmy
        Bo -- ga o po -- moc, a -- by on na -- szym stra -- żem był,
        od złych czar -- tów nas o -- bro -- nił, któ -- rzy naj -- wię -- cej
        w_ciem -- no -- ści u -- ży -- wa -- ją swej chy -- tro -- ści. \bar "||"
    }
}

Testing raw input

Note
this requires safe mode to be disabled, which it isn't on this wiki.

From Keyboard Sonata, K. 141 (Scarlatti), testing raw=1:

Unable to compile LilyPond input file:

line 72 - column 8:
GUILE signaled an error for the expression beginning here