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