]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/string-quartet-template-simple.ly
New upstream version 2.19.65
[lilypond.git] / Documentation / snippets / new / string-quartet-template-simple.ly
diff --git a/Documentation/snippets/new/string-quartet-template-simple.ly b/Documentation/snippets/new/string-quartet-template-simple.ly
new file mode 100644 (file)
index 0000000..71530ca
--- /dev/null
@@ -0,0 +1,58 @@
+\version "2.19.56"
+
+\header {
+  lsrtags = "really-simple, template, unfretted-strings"
+
+  texidoc = "
+This template demonstrates a simple string quartet. It also uses a
+@code{\\global} section for time and key signatures
+
+"
+  doctitle = "String quartet template (simple)"
+} % begin verbatim
+
+global= {
+  \time 4/4
+  \key c \major
+}
+
+violinOne = \new Voice \relative c'' {
+  c2 d
+  e1
+  \bar "|."
+}
+
+violinTwo = \new Voice \relative c'' {
+  g2 f
+  e1
+  \bar "|."
+}
+
+viola = \new Voice \relative c' {
+  \clef alto
+  e2 d
+  c1
+  \bar "|."
+}
+
+cello = \new Voice \relative c' {
+  \clef bass
+  c2 b
+  a1
+  \bar "|."
+}
+
+\score {
+  \new StaffGroup <<
+    \new Staff \with { instrumentName = "Violin 1" }
+    << \global \violinOne >>
+    \new Staff \with { instrumentName = "Violin 2" }
+    << \global \violinTwo >>
+    \new Staff \with { instrumentName = "Viola" }
+    << \global \viola >>
+    \new Staff \with { instrumentName = "Cello" }
+    << \global \cello >>
+  >>
+  \layout { }
+  \midi { }
+}