]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/staff-headword.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / staff-headword.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.55
8 \version "2.19.55"
9 \include "catalan.ly"
10
11 \header {
12   lsrtags = "headword"
13   texidoc = ""
14   doctitle = "headword"
15 } % begin verbatim
16
17
18 \header {
19         mutopiatitle = "Napolitan Dance (Swan Lake)"
20         mutopiacomposer = "TchaikovskyPI"
21         mutopiainstrument = "Piano, Trumpet, Percussion"
22         source = "New arrangement"
23         style = "Classical"
24         copyright = "Public Domain"
25         maintainer = "Laurence Sardain"
26         lastupdated = "2006/Dec/21"
27 %       title = "Le Lac des Cygnes"
28 %       subtitle = "Danse Napolitaine"
29 %       composer = "Piotr Ilitch Tchaïkovski"
30 %       arranger = "arr. Laurence Sardain"
31 %       footer = "Mutopia-2006/12/22-896"
32 }
33
34 trompette = \relative do'' {
35   \clef treble
36   \key mib \major
37   \time 2/4
38   R2^\markup { \italic Comodo } |
39   r8 \once \override TextScript.padding = #2.0
40   sib16-.^\markup {\dynamic p \italic grazioso} do-. mib( re)-. do-. sib-. |
41   re8-. r8 re4->( |
42   re8) do16-. re-. mib( re) do-. re-. |
43   do8-. r8 sib4-> |
44 }
45
46 tambourin = \drummode {
47   \time 2/4
48   r8 tamb16 16 8 8 |
49   r8 16 16 8 8 |
50   r8 8 r8 8 |
51   r8 16 16 8 8 |
52   r8 8 r8 8 |
53 }
54
55 upper = \relative do' {
56   \clef treble
57   \key mib \major
58   \time 2/4
59   r8\p <sol sib mib>16-. <sol sib mib>-. <sol sib mib>8-. <sol sib mib>-. |
60   r8 <sol sib mib>16-. <sol sib mib>-. <sol sib mib>8-. <sol sib mib>-. |
61   r8 <lab sib re>16-. <lab sib re>-. <lab sib re>8-. <lab sib re>-. |
62   r8 <lab sib re>16-. <lab sib re>-. <lab sib re>8-. <lab sib re>-. |
63   r8 <sol sib mib>16-. <sol sib mib>-. <sol sib mib>8-. <sol sib mib>-. |
64 }
65
66 lower = \relative do {
67   \clef bass
68   \key mib \major
69   \time 2/4
70   mib4-. r4 |
71   sib-. r |
72   fa'-. r |
73   sib, r |
74   mib4-. r4 |
75 }
76
77
78 \score {
79   <<
80     \context Staff = "trumpet"
81     \with { instrumentName = \markup { "Trumpet" \concat{ B \teeny \raise #0.4 \flat } } }
82     <<
83       \transpose sib do'
84       \trompette
85     >>
86     \context RhythmicStaff = "tambourin"
87     \with { instrumentName = "Tambourine" }
88     <<
89       \tambourin
90     >>
91     \context PianoStaff = "prima"
92     \with { instrumentName = "Piano" }
93     <<
94       \context Staff = "uppera" \upper
95       \context Staff = "lowera" \lower
96     >>
97   >>
98   \layout { }
99 }
100
101 \score {
102   <<
103     \context Staff = "trumpet" \with { midiInstrument = "trumpet" }
104     \trompette
105     \context DrumStaff = "tambourin" {
106       \tambourin
107     }
108     \context Staff = "piano"
109     <<
110       \upper
111       \lower
112     >>
113   >>
114   \midi { \tempo 4 = 72 }
115 }