LilyPond

LilyPond is a program for music engraving.

Let’s see how it works. Here is the source code, which you can decipher rather easily. It took me about five minutes to write this down.

\version "2.18.2"
\header{
  title = "Sinfonie in g"
}

global = {
  \tempo "Molto Allegro"
  \time 2/2
  \key g \minor
}

violineOne = \new Voice \relative g''{
  \set Staff.instrumentName = #"Violin 1 "

  \clef "treble"
  r2 r4 ees8(\p d) d4 ees8( d) d4 ees8( d) d4( bes')
  r4 bes8( a) g4 g8( f) ees4 ees8( d) c4 c
  r4 d8( c)
}

violineTwo = \new Voice \relative g'{
  \set Staff.instrumentName = #"Violin 2 "

  \clef "treble"
  r2 r4 ees8(\p d) d4 ees8( d) d4 ees8( d) d4( bes')
  r4 bes8( a) g4 g8( f) ees4 ees8( d) c4 c
  r4 d8( c)
}

\score {
  \new StaffGroup <<
    \new Staff << \global \violineOne >>
    \new Staff << \global \violineTwo >>
  >>
  \layout { }
}

You save the source file and compile it to get the pdf file. VoilĂ !

Leave a Reply

Your email address will not be published. Required fields are marked *