]> git.donarmstrong.com Git - lilypond.git/blob - input/kortjakje.ly
release: 0.0.25
[lilypond.git] / input / kortjakje.ly
1 % "Ah,  vous dirais-je, maman" (Mozart, KV 265)
2
3 % bare bones version. (written down from memory :-)
4 % for lyrics, see twinkle.ly
5
6 % the % is a comment.
7
8 % declare music (which will be in *one* staff ) for the lead voice
9
10 melodie = music {
11         $                       % switch Lilypond in note-mode
12         \octave {}              % set the default octave
13         % the default note duratino is 4
14         %%% theme
15         c c |                   % the '|' checks if there is a new measure here.
16         g g|
17         a a|
18
19         g2|     % g2 means a "g-1" pitched half-note 
20         f f|    e e|    d d|  c2
21         g g|    f f|    e e|    d d|    g g|    f f|    e e|    d d|
22         %%% var 1
23           c r8 c8               % r8 means an 8th rest.
24                   (|            % start a slur
25                                 % NOTE: the slurstart should be directly after the note
26                         )       % end a slur.
27                           g r8 g8 (|    ) a r8 a8 (|    ) g r4 
28           f r8 f8 (|    ) e4 r8 e8 (    |) d4 r8 d8 (|  ) c4 r4 
29 $}
30
31                                 % more of this.
32 begeleiding =
33 $
34         \music {                % as you can see, the $ sign obliges 
35                                 % you to precede keyword by a backslash: \
36         \octave { ` }           % default octave: 1 below the first octave.
37
38         %%% theme
39         `c                      % ` means one octave lower.
40                                 % Similarly: ' means one higher.
41            c    e c     f c     e c     d `b    c `a    `f `g   `c2
42         \octave { ` }
43         e `g    d `g    c `g    `b `g   e `g    d `g    c `g    `b `g
44         %%%% var 1
45         r8 e8() c       r8 e8() c       r8 f8()c        r8 e8()c
46         r8 d8()`b       r8 c8()`a       r8 `a8()`f      r8 `e8()`c
47 }$
48
49
50 % create a staff named bstaf
51 bstaf = staff {
52         melodic
53         music { begeleiding }   % use the declared music
54                 commands {      % commands with Staff-wide impact.
55                         clef "bass"     % bass-clef
56                 }
57         }
58
59 % another one
60 vstaf = staff {
61         melodic
62                 music { melodie }
63                 commands { clef "violin" }
64                                 % default clef is violin clef
65         }
66
67
68 score {
69         staff { vstaf }
70         staff { bstaf }
71         paper {
72                 unitspace 2.5cm % a whole note takes 2.5 cm ideally.
73         }
74         commands {
75                 meter 2* 4      % a 2/4 meter.
76                 skip 33:0       % skip 32 measures, and generate the bars
77 %               meter 6 8       % another meter
78         }
79 }
80