]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/string-quartet-template-simple.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / new / string-quartet-template-simple.ly
1 \version "2.19.56"
2
3 \header {
4   lsrtags = "really-simple, template, unfretted-strings"
5
6   texidoc = "
7 This template demonstrates a simple string quartet. It also uses a
8 @code{\\global} section for time and key signatures
9
10 "
11   doctitle = "String quartet template (simple)"
12 } % begin verbatim
13
14 global= {
15   \time 4/4
16   \key c \major
17 }
18
19 violinOne = \new Voice \relative c'' {
20   c2 d
21   e1
22   \bar "|."
23 }
24
25 violinTwo = \new Voice \relative c'' {
26   g2 f
27   e1
28   \bar "|."
29 }
30
31 viola = \new Voice \relative c' {
32   \clef alto
33   e2 d
34   c1
35   \bar "|."
36 }
37
38 cello = \new Voice \relative c' {
39   \clef bass
40   c2 b
41   a1
42   \bar "|."
43 }
44
45 \score {
46   \new StaffGroup <<
47     \new Staff \with { instrumentName = "Violin 1" }
48     << \global \violinOne >>
49     \new Staff \with { instrumentName = "Violin 2" }
50     << \global \violinTwo >>
51     \new Staff \with { instrumentName = "Viola" }
52     << \global \viola >>
53     \new Staff \with { instrumentName = "Cello" }
54     << \global \cello >>
55   >>
56   \layout { }
57   \midi { }
58 }