]> git.donarmstrong.com Git - lilypond.git/blob - input/ascii-art/twinkle-as5.ly
update syntax in .ly files.
[lilypond.git] / input / ascii-art / twinkle-as5.ly
1 \version "1.7.6"
2 % ASCII Art output
3 %
4 % Process as:
5 %
6 %     lilypond -fas foo.ly
7 %     as2text foo.as
8
9
10 \header{
11 filename =      "twinkle.ly"
12 title =                 "Twinkle Twinkle Little Star"
13 composer =      "Traditional"
14 enteredby =     "hwn and jcn"
15 copyright =     "public domain"
16 }
17
18
19
20 \include "paper-as5.ly"
21
22 melody =  \notes \relative c'' {
23         \time 2/4
24         c4 c | g' g | a a | g g |
25 %{
26         f f | e e | d d8.( e16 | )c2 |
27
28         g'4 g | f f | e e | d d |
29         g g | f f | e( e8. f16 | e4 )d |
30
31         c c | g' g | a a | g g |
32         f f | e e | d d8.( e16 | )c2 |
33 %}
34 }
35
36 accompany =  \notes \relative c {
37         \clef "bass"
38         \time 2/4
39         c4 c' | e c | f c | e c | 
40 %{
41         d b | c a | f g | c,2 | 
42
43         e'4 g, | d' g, | c g | b g | 
44         e' g, | d' g, | c c8.( d16 | c4 )b |
45
46         c, c' | e c | f c | e c | 
47         d b | c a | f g | c,2 
48 %}
49 }
50
51
52 text =  \lyrics{
53         Twin -- kle, twin -- kle, lit -- tle star, " "
54 %{
55         How I won -- der what you  " " are.
56         Up a -- bove the world so high, " "
57         Like a dia -- mond in the  " " sky. " "
58         Twin -- kle, twin -- kle, lit -- tle star, " "
59         How I won -- der what you  " " are!
60 %}
61 }
62
63 \score{
64         \context GrandStaff <
65                 \addlyrics
66                         \context Staff=upper \melody
67                 \context Lyrics=between \text
68                 \context Staff=lower \accompany 
69         >
70         \paper{
71                 \translator { \GrandStaffContext \accepts "Lyrics" }
72                 indent=4.0\char
73                 linewidth=78.0\char
74         }
75 }
76