Jump to content

Piano template (simple): Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Here is a simple piano staff with some notes.
Here is a simple piano staff with some notes.


<lilypond version="2.24.0">
<lilypond version="2.24">
upper = \relative c'' {
upper = \relative c'' {
   \clef treble
   \clef treble
Line 29: Line 29:
</lilypond>
</lilypond>


[[Category:Template]]
[[Category:Keyboards]]
[[Category:Keyboards]]
[[Category:Really simple]]
[[Category:Really simple]]
[[Category:Template]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 06:44, 14 December 2025

Here is a simple piano staff with some notes.

\version "2.24"

upper = \relative c'' {
  \clef treble
  \key c \major
  \time 4/4

  a4 b c d
}

lower = \relative c {
  \clef bass
  \key c \major
  \time 4/4

  a2 c
}

\score {
  \new PianoStaff \with { instrumentName = "Piano" }
  <<
    \new Staff = "upper" \upper
    \new Staff = "lower" \lower
  >>
  \layout { }
  \midi { }
}