]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/piano-template-simple.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / new / piano-template-simple.ly
1 \version "2.19.56"
2
3 \header {
4   lsrtags = "keyboards, really-simple, template"
5
6   texidoc = "
7 Here is a simple piano staff with some notes.
8
9 "
10   doctitle = "Piano template (simple)"
11 } % begin verbatim
12
13 upper = \relative c'' {
14   \clef treble
15   \key c \major
16   \time 4/4
17
18   a4 b c d
19 }
20
21 lower = \relative c {
22   \clef bass
23   \key c \major
24   \time 4/4
25
26   a2 c
27 }
28
29 \score {
30   \new PianoStaff \with { instrumentName = #"Piano" }
31   <<
32     \new Staff = "upper" \upper
33     \new Staff = "lower" \lower
34   >>
35   \layout { }
36   \midi { }
37 }