]> git.donarmstrong.com Git - lilypond.git/blob - input/star-spangled-banner.ly
release: 1.1.68
[lilypond.git] / input / star-spangled-banner.ly
1 %{
2 Converted from star.mup with the aid of mup2ly.py
3 http://www.Arkkra.com/doc/star.html
4 http://www.Arkkra.com/doc/star.ps
5 %}
6
7 \header{
8         title="The Star Spangled Banner";
9         subtitle="The United States National Anthem";
10         poet="Text by Francis Scott Key";
11         composer="J. S. Smith";
12         arranger="Arranged by William J. Krauss";
13         enteredby="jcn";
14         copyright="public domain";
15 }
16
17 $staff1_voice_1 = \notes {
18   a8.()fis16 
19   \repeat volta 2 { d4 fis4 a4 d'2 fis'8. e'16 d'4 fis4 gis4 a2 a8 a8 
20   fis'4. e'8 d'4 cis'2 b8. cis'16 d'4 d'4 a4 }
21   \alternative { { fis4 d4 a8. fis16 } { fis4 d4 fis'8. fis'16 } } 
22   fis'4 g'4 a'4 a'2 g'8 fis'8 e'4 fis'4
23   g'4 g'2 g'4 fis'4. e'8 d'4 cis'2 b8. cis'16 d'4 fis4 gis4 a2 a4
24   d'4 d'4 d'8()cis'8 b4 b4 b4 e'4 g'8 ()fis'8  e'8()d'8 
25   d'4()cis'4 a8. a16 d'4.()e'8 fis'8 g'8 a'2 d'8 e'8 fis'4. g'8
26   e'4 d'2 s4 
27 }
28
29 $staff1_voice_2 = \notes { 
30   a8.()fis16 
31   \repeat volta 2 { a,4 d4 e4 d4 () fis4 fis8. fis16 fis4 d4 d4 cis2
32   e8 e8 a4. a8 a4 a2 a8. a16 a4 a4 a4 }
33   \alternative { { fis4 d4 a8. fis16 } { fis4 d4 r4 } }
34   a4 a4 d'4 d'2 a8 a8 cis'4 cis'4 cis'4 cis'2 a4 a4. a8 a4 a2
35   a8. a16 d4 d4 d4 cis2 e4 fis4 e4 d4 d4 d4 dis4 g4 g8()dis8 e4 e2
36   e8. e16 d4.()a8 a8 a8 a2 g8 g8 a4. a8 g4 fis2 s4 
37 }
38
39 $staff2_voice_1 = \notes { 
40   r4 
41   \repeat volta 2 { fis4 a4 a4 b2 cis'8. cis'16 b4 b4 b4 a2 cis'8 cis'8 
42   d'4. cis'8 d'4 e'2 e'8. e'16 d'4 d'4 a4 }
43   \alternative { { fis4 d4 r4 } { fis4 d4 r4 } }
44   d4 e4 fis4 fis'2 e'8 d'8 e'4 e'4 e'4 e'2 cis'4 d'4. cis'8 d'4 e'2
45   e'8. e'16 a4 a4 e4 e2 cis'4 a4 a4 a4 g4 g4 b4 b4 b4 b4 a2
46   cis'8. cis'16 a4.()cis'8 d'8 d'8 d'2 d'8 d'8 d'4. d'8 cis'4
47   a2 s4 
48 }
49
50 $staff2_voice_2 = \notes { 
51   r4 
52   \repeat volta 2 { d4 d4 cis4 b,2 ais,8. ais,16 b,4 b,4 e4 a,2 a8 a8 
53   d4. e8 fis8 g8 a2 g8. g16 fis4 fis4 a4 }
54   \alternative { { fis4 d4 r4 } { fis4 d4 r4 } } 
55   d4 d4 d4 d2 d8 d8 a4 a4 a4 a2 a,4 d4. e8 fis8 g8 a2 g8. g16 
56   fis4 d4 e4 a,2 a4 d4 e4 fis4 g4 g4 fis4 e4 e8()fis8  g8()gis8 a2 
57   g8. g16 fis4.()a,8 d8 e8 fis2 b8 b8 a4. a8 a,4 d2 s4 
58 }
59
60
61 altOne =\lyrics {  say,4 can you | see,2 __ by8. the16 dawn's4 ear- ly light2 What8
62        so8 proud-4. ly8 we4 hailed,2 At8. the16 twi-4 light's last gleam-
63        ing. Whose8. broad16  }
64
65 altTwo =     \lyrics {  stripes4 and bright stars,2 through8. the16 per-4 il- ous fight,2
66       O'er8 the8 ram-4. parts8 we4 watched,2 were8. so16 gal-4 lant- ly 
67         _ _   % UGH UGH
68         stream-4 ing
69   And8. the16 rock-4 ets' red glare,2 the8 bombs8
70   burst-4 ing in air,2 gave4 proof4. through8 the4 night2 that8.
71   our16 flag4 was still there,2 Oh4 say, does that star- span-
72   gled ban- ner yet wave,2 __ O'er8. the16 land2 __ of8 the8 free2
73   and8 the8 home4. of8 the4 brave.2
74 }
75 % old code
76 nonRepeatText = \lyrics  \context LyricVoice = LVA {
77   Oh4 __
78   \context Lyrics <
79         \altOne  
80         \altTwo 
81   >
82 }
83
84 %{
85 Be careful to have all duration within the lyrics of the same kind.
86
87 Alternatives & need to be matched more intelligently.  See
88 "whose broad" alt1, volta1, "streaming" alt2, *volta2*!
89
90 %}
91
92 textxx = \lyrics {  
93   Oh __ \repeat "fold" 2 { }
94   \alternative {
95      { 
96        say, can you | see, by the dawn's ear- ly light What
97        so proud- ly we hailed, At the twi- light's last gleam-
98        ing. Whose broad 
99      }
100
101     { 
102       stripes and bright stars, through the per- il- ous fight,
103       O'er the ram- parts we watched, were so gal- lant- ly
104         _ _ _ _ % UGH UGH UGH 
105         stream- ing
106   And the rock- ets' red glare, the bombs
107   burst- ing in air, gave proof through the night that
108   our flag was still there, Oh say, does that star- span-
109   gled ban- ner yet wave, __ O'er the land __ of the free
110   and the home of the brave.
111   }
112 }}
113
114
115 beginmatter = \notes {\time 3/4; \key D;  s4 | }
116                         
117
118 automaticLyrics = \notes \context GrandStaff < 
119                 \addlyrics
120                 \context Staff=staffA <
121                         \beginmatter
122                         \clef treble;
123                         \property Staff.automaticMelismas = "1"
124                         \notes \transpose c'' {\voiceone \$staff1_voice_1 \bar "|.";} 
125                         \notes \transpose c'' {\voicetwo \$staff1_voice_2 } 
126                 >
127                 \context LyricVoice \textxx
128                 \context Staff=staffB <
129                         \beginmatter
130                         \clef bass;
131                 \property Staff.noVoltaBraces = "1"
132                         {\voiceone \$staff2_voice_1 \bar "|."; } 
133                         {\voicetwo \$staff2_voice_2 } 
134                 >
135         >
136
137 handLyrics = \notes \context GrandStaff < 
138                 \context Staff=staffA <
139                         \beginmatter
140                         \notes \transpose c'' {\voiceone \$staff1_voice_1 \bar "|.";} 
141                         \notes \transpose c'' {\voicetwo \$staff1_voice_2 } 
142                 >
143                 \nonRepeatText
144                 \context Staff=staffB <
145                         \beginmatter
146                         \clef bass;
147
148                         \property Staff.noVoltaBraces = "1"
149                         {\voiceone \$staff2_voice_1 \bar "|."; } 
150                         {\voicetwo \$staff2_voice_2 } 
151                 >
152         >
153
154
155 \include "paper16.ly";
156
157 \score{ 
158         \automaticLyrics
159         \paper{
160                 \paper_sixteen
161                 textheight = 230.\mm;
162                 linewidth= 180.\mm;
163                 \translator {
164                         \GrandStaffContext
165                         \accepts "Lyrics";
166                 }
167 %               castingalgorithm = \Wordwrap;
168         }
169         \midi {}
170 }
171
172
173 \version "1.1.66";