]> git.donarmstrong.com Git - lilypond.git/blob - input/praeludium-fuga-E.ly
release: 1.0.15
[lilypond.git] / input / praeludium-fuga-E.ly
1 \header {
2   filename =    "praeludium-fuga-E.ly";
3   title =       "praeludium and fuga in E-major";
4   opus =        "BWV 566";
5   composer =    "Johann Sebastian Bach (1685-1750)";
6   enteredby =   "JCN";
7   copyright =   "public domain";
8 }
9 %{
10   description
11
12   Praeludium 3 bar excerpt,
13         2nd fuga transposed subject -- 4 bar excerpt. 
14         We try to imitate the Griepenkerl/Keller edition which
15         gives the best approximation to Bach's original layout
16
17 %}
18 %{
19  Tested Features:
20  purpose of this file is testing: 
21    * real-life collisions
22    * multi-voice input --- splitting?
23    * organ staff...
24 %}
25
26 \version "1.0.7";
27
28
29
30 praeludium_commands = \notes {
31   \time 4/4;
32    \key e;
33 }
34
35 praeludium_right =  \notes {
36   \$praeludium_commands
37   \clef violin;
38
39   % 13 -- how to type -- where to split -- this more neatly?
40   \type Staff <
41     \type Voice = I \relative c'' { \stemup r4 dis4 e4. e8 ~ |
42       \shifton e4 [d8 fis8] \shiftoff gis4 ~ [gis8 fis16 e ] |
43       fis4 ~ [fis8 e16 dis] e4 r8 e8 }
44     \type Voice = III \relative c'' { \stemup \shifton r4 bis cis \shiftoff cis |
45       a' ~ [a16 gis a b] \shifton dis,4 cis ~ |
46       [cis8 dis16 ais] bis4 cis r8 b }
47     \type Voice = IV \relative c'' {
48
49       %\stemup
50       %{
51       this is a diversion from the Griepenkerl/Keller
52        edition; a hack to avoid collisions
53       %}
54       \stemdown
55       \shifton s4 gis }
56       
57     \type Voice =  II \relative c' { \stemdown
58 %      \shifton       % idem
59
60       r4 fis \shiftoff gis gis |
61       a4. cis8 gis2 |
62       fis4 gis gis r8 e8 }
63   > |
64   % 16
65 }
66
67 praeludium_left = \notes \relative c {
68   \$praeludium_commands
69   \clef bass;
70
71   % 13
72   \type Staff <
73     { \stemup r4 dis' cis cis ~ |
74       [cis8 a d cis] [bis gis] cis4 |
75       dis2 cis4 r8 cis }
76     { \stemup bis2 }
77     { \stemup \shifton r4 gis ~ [gis8 gis] ~ \stemdown \shiftoff gis4 |
78       a4. fis8 gis4. a8 ~ |
79       a4 gis4 gis r8 gis }
80 %    { \stemup \shifton s4 fis4 e}
81 % a quick hack to avoid some collisons
82     { \stemdown \shifton s4 fis4 e}
83     { \stemdown s4 dis4 cis4 }
84   > |
85   %16
86 }
87
88 praeludium_pedal = \notes \relative c{
89   \$praeludium_commands  
90   \clef bass;
91
92   %13
93   r4 fis,4-\ltoe e4.-\lheel e'8-\rheel | 
94   fis4.-\rtoe fis8-\rtoe fis4-\rtoe [e8-\ltoe a-\rtoe] | 
95   dis,4-\ltoe gis-\rtoe [cis,8-\ltoe b!-\lheel ais-\rtoe gis-\ltoe] |
96   %16
97 }
98
99
100 fugaII_commands = \notes{
101   \time3/4;
102   \key e;              % E-major
103 }
104
105 fugaII_right = \notes   \relative c''   {
106   \$fugaII_commands
107   \clef violin;
108
109   %15
110   \type Staff <
111     { \stemup [b8 fis8] b4 }
112     { \stemdown fis2 }
113   >
114    %{ this chord is usually set like this:
115         |
116        x|| 
117         x||
118          x|
119       |x
120       |
121    %}
122    \type Staff <
123      { \stemup \shiftoff e4 }
124      { \stemup \shifton cis }
125      { \stemup \shifton ais }
126      { \stemdown fis }
127    > |
128   %16
129   \type Staff <
130     { \stemup dis2 dis4 |
131       cis2 cis4 |
132       b4. [cis8 dis e] }
133     { \stemup \shifton [b8 fis] b2 ~ |
134       [b8 a!16 gis] a2 ~ |
135       a4 gis2 }
136     { \stemdown fis2. ~ |
137       fis ~ |
138       fis4 e2 }
139   > |
140   %19
141 }
142
143 fugaII_left = \notes {
144   \$fugaII_commands  
145   \clef bass;
146
147   %15
148   \type Staff < 
149     { \stemdown b2 \stemup ais4 |
150       b2 b4 }
151     { \stemdown s2 e4 |
152       fis2 fis4 }
153   >
154   \stemdown cis2 e4 |
155   b4. b8 b4 |
156   %19
157 }
158
159 fugaII_pedal = \notes \relative c {
160   \$fugaII_commands  
161   \clef bass;
162
163   %15
164   dis4.-\ltoe e8-\rtoe cis4 |
165   b4.-\lheel [cis8-\ltoe dis8-\rtoe e8-\rheel] |
166   fis4.-\rtoe [e8-\rheel dis8-\rtoe cis8-\ltoe] |
167   dis4-\rtoe e4-\rheel e,4-\ltoe |
168   %19
169 }
170
171 breakmusic = \notes { 
172   %\time4/4;
173   r1
174 }
175
176
177 % these should be two separate scores...
178 \score{
179   \type Score <
180     \type GrandStaff <
181       \type Staff = treble {
182         \praeludium_right \breakmusic \fugaII_right }
183       \type Staff = bass { 
184         \praeludium_left \breakmusic \fugaII_left }
185     > 
186     \type Staff = pedal {
187       \praeludium_pedal \breakmusic \fugaII_pedal }
188   >
189
190   \paper{}
191
192   \midi {
193     \tempo 4 =96; }
194 }