A.1.1 Notes only

This very simple template gives you a staff with notes, suitable for a solo instrument or a melodic fragment. Cut and paste this into a file, add notes, and you’re finished!

\version "2.18.2"
melody = \relative c' {
  \clef treble
  \key c \major
  \time 4/4

  a4 b c d
}

\score {
  \new Staff \melody
  \layout { }
  \midi { }
}

[image of music]


Other languages: español, français, italiano, 日本語, nederlands.
About automatic language selection.

LilyPond — Learning Manual v2.18.2 (stable-branch).