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