]> git.donarmstrong.com Git - lilypond.git/blob - input/toccata-fuga-E.ly
release: 0.0.67
[lilypond.git] / input / toccata-fuga-E.ly
1 %{MudelaHeader
2
3  filename: toccata-fuga-E.ly
4  title: toccata and fuga in E-major bwv 566
5  description:  
6  toccata: 3 bar excerpt
7  2nd fuga: transposed subject --- 4 bar excerpt
8
9  composers: Johann Sebastian Bach (1685-1750)
10  entered-by: JCN
11  copyright:
12
13  Tested Features:
14  purpose of this file is testing: 
15      * real-life collisions
16      * multi-voice input --- splitting?
17      * organ staff...
18
19 EndMudelaHeader
20 %}
21
22
23 \version "0.0.58";
24
25 toccata_commands = \melodic{
26         \meter 4/4;
27         \key fis cis gis dis; % E-major
28 }
29
30 %toccata_right = \melodic \$toccata_commands { 
31 toccata_right = \melodic{ 
32         \$toccata_commands ++
33         % 13 -- how to type -- where to split -- this more neatly ?
34         \octave c';
35         <\multivoice 
36                 { \stem 1; r4 dis'4 e'4.-. e'8( | \hshift 1; )e'4 [d'8 fis'8] \hshift 0; gis'4 [gis'8 fis'16 e'16] | fis'4~  [fis'8 e'16 dis'16] e'4 r8 e'8 }
37                 { \stem 1; \hshift 1; r4 bis4 cis'4-. cis'4 | \hshift 0; a'4~  [a'16 gis'16 a'16 b'16] \hshift 1; dis'4 cis'4~  [cis'8 dis'16 a16] bis4 cis'4 r8 b8 }
38                 { \stem -1; r4 < gis4 fis4 dis4 > gis4-. gis4 | a4. cis'8 gis2 | fis4 gis4 gis4 r8 e8 }
39         > |
40         % 16
41 }
42
43 toccata_left = \melodic{ 
44         \$toccata_commands ++
45         \octave c;
46         \clef bass;
47         % 13
48         <\multivoice
49                 { \stem 1; bis2 cis'4-. cis'4~  [cis'8 a8 d'8 cis'8] [bis8 gis8] cis'4 | dis'2 cis'4 r8 cis'8 }
50                 { \stem 1; \hshift 1; r4 gis4. gis8~  gis4 | \stem -1; \hshift 0; a4. fis8 gis4. a8~  a4 gis4-. gis4 r8 gis8 }
51                 { \stem -1; r4 < dis4 fis4 > < cis4 e4 > }
52         > |
53         % 16
54 }
55
56 toccata_pedal = \melodic{
57         \$toccata_commands ++
58         \octave c;
59         \clef bass;
60         % 13
61         r4 'fis4-\ltoe 'e4.-\lheel e8-\rheel | 
62         % 14
63         fis4.-\rtoe fis8-.-\rtoe fis4-\rtoe [e8-\ltoe a8-\rtoe] | 
64         % 15
65         dis4-\ltoe gis4-\rtoe [cis8-\ltoe 'b8-\lheel 'a8-\rtoe 'gis8-\ltoe] |
66         % 16
67 }
68
69 fuga2_commands = \melodic{
70         \meter 3/4;
71         \key fis cis gis dis; % E-major
72 }
73
74 fuga2_right = \melodic{
75         \$fuga2_commands ++
76         % 15
77         \octave c';
78         <\multivoice
79                 { \stem 1; [b8 fis8] b4 }
80                 { \stem -1; fis2 }
81         >
82         %{ this chord is usually set like this:
83              |
84             x|| 
85              x||
86               x|
87            |x
88            |
89         %}
90         < \multivoice
91                 { \stem 1; \hshift 0; e'4 }
92                 { \stem 1; \hshift 1; cis'4 }
93                 { \stem 1; \hshift 2; ais4 }
94                 { \stem -1; fis4 }
95         > |
96         % 16
97         <\multivoice
98                 { \stem 1; dis'2 dis'4 | cis'2 cis'4 | b4~  [b8 cis'8 dis'8 e'8] }
99                 { \stem 1; \hshift 1; [b8 fis8] b2~  [b8 a16 g16] a2 | a4 gis2 }
100                 { \stem -1; fis2.~  fis2.~  fis4 e2 }
101         > |
102         % 19
103 }
104
105 fuga2_left = \melodic{
106         \$fuga2_commands ++
107         \octave c;
108         \clef bass;
109         % 15
110         b2 
111         <\multivoice 
112                 { \stem 1; ais4 | bes2. }
113                 { \stem -1; e4  | fis2 fis4 }
114         >
115         % 17
116         cis'2 e'4 |
117         % 18
118         b4. b8 b4 |
119 }
120
121 fuga2_pedal = \melodic{
122         \$fuga2_commands ++
123         \octave c;
124         \clef bass;
125         % 15
126         dis4.-\ltoe e8-\rtoe cis4 |
127         % 16
128         'b4.-\lheel [c8-\ltoe dis8-\rtoe e8-\rheel] |
129         % 17
130         fis4.-\rtoe [e8-\rheel dis8-\rtoe cis8-\ltoe] |
131         % 18
132         dis4-\rtoe e4-\rheel 'e4-\ltoe |
133 }
134
135 break = \melodic{ \meter 4/4; r1 }
136
137 % these should be two separate scores...
138 \score{
139         \staff{ melodicregs 
140                 % why the extra "\melodic" (silly)
141                 % let "[ x ]" be "dimension of x":
142                 %     [ melodic ++ melodic ] == [ simple-mudela ]
143                 %     [ \melodic{ melodic ++ melodic } ] == [ melodic ]
144                 % ?
145                 \melodic{ 
146                         \$toccata_right ++ \break ++ \$fuga2_right 
147                 }
148         }
149         \staff{ melodicregs 
150                 \melodic{ 
151                         \$toccata_left ++ \break ++ \$fuga2_left 
152                 }
153         }
154         \staff{ melodicregs 
155                 \melodic{ 
156                         \$toccata_pedal 
157                         ++ \break 
158                         ++ \$fuga2_pedal 
159                 }
160         }
161         \paper{}
162         \midi{
163                 \tempo 4:96
164         }
165 }
166