]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/piano-template-simple.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / new / piano-template-simple.ly
diff --git a/Documentation/snippets/new/piano-template-simple.ly b/Documentation/snippets/new/piano-template-simple.ly
new file mode 100644 (file)
index 0000000..33df86c
--- /dev/null
@@ -0,0 +1,37 @@
+\version "2.19.56"
+
+\header {
+  lsrtags = "keyboards, really-simple, template"
+
+  texidoc = "
+Here is a simple piano staff with some notes.
+
+"
+  doctitle = "Piano template (simple)"
+} % begin verbatim
+
+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 { }
+}