]> git.donarmstrong.com Git - lilypond.git/blob - input/praeludium-fuga-E.ly
0ec40baa3f742a0e1b743f77493efafdb9f405c4
[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.16";
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   \context Staff <
41     \context 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     \context 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     \context 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     \context 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   \context Staff <
73     \context VoiceTwo { r4 }
74     \context VoiceOne { \stemup s4 dis' cis cis ~ |
75       [cis8 a d cis] [bis gis] cis4 |
76       dis2 cis4 r8 cis }
77     \context VoiceOne { \stemup bis2 }
78     \context VoiceThree { \stemup \shifton r4 gis ~ [gis8 gis] ~ \stemdown \shiftoff gis4 |
79       a4. fis8 gis4. a8 ~ |
80       a4 gis4 gis r8 gis }
81 %    { \stemup \shifton s4 fis4 e}
82 % a quick hack to avoid some collisons
83     \context VoiceFour { \stemdown \shifton s4 fis4 e}
84     \context VoiceTwo { \stemdown s4 dis4 cis4 }
85   > |
86   %16
87 }
88
89 praeludium_pedal = \notes \relative c{
90   \$praeludium_commands  
91   \clef bass;
92
93   %13
94   r4 fis,4-\ltoe e4.-\lheel e'8-\rheel | 
95   fis4.-\rtoe fis8-\rtoe fis4-\rtoe [e8-\ltoe a-\rtoe] | 
96   dis,4-\ltoe gis-\rtoe [cis,8-\ltoe b!-\lheel ais-\rtoe gis-\ltoe] |
97   %16
98 }
99
100
101 fugaII_commands = \notes{
102   \time3/4;
103   \key e;              % E-major
104 }
105
106 fugaII_right = \notes   \relative c''   {
107   \$fugaII_commands
108   \clef violin;
109
110   %15
111   \context Staff <
112     \context Voice = VA { \stemup [b8 fis8] b4 }
113     \context Voice = VB {  \stemdown fis2 }
114   >
115    %{ this chord is usually set like this:
116         |
117        x|| 
118         x||
119          x|
120       |x
121       |
122    %}
123    \context Staff <
124      { \stemup \shiftoff e4 }
125      { \stemup \shifton cis }
126      { \stemup \shifton ais }
127      { \stemdown fis }
128    > |
129   %16
130   \context Staff <
131     \context VoiceOne {  dis2 dis4 |
132       cis2 cis4 |
133       b4. [cis8 dis e] }
134     \context VoiceThree {  \stemup \shifton [b8 fis] b2 ~ |
135       [b8 a!16 gis] a2 ~ |
136       a4 gis2 }
137     \context VoiceTwo {  \stemdown fis2. ~ |
138       fis ~ |
139       fis4 e2 }
140   > |
141   %19
142 }
143
144 fugaII_left = \notes {
145   \$fugaII_commands  
146   \clef bass;
147
148   %15
149   \context Staff < 
150     \context VoiceTwo { \stemdown b2 \stemup ais4 |
151       b2 b4 }
152     \context VoiceTwo { \stemdown s2 e4 |
153       fis2 fis4 }
154   >
155   \stemdown cis2 e4 |
156   b4. b8 b4 |
157   %19
158 }
159
160 fugaII_pedal = \notes \relative c {
161   \$fugaII_commands  
162   \clef bass;
163
164   %15
165   dis4.-\ltoe e8-\rtoe cis4 |
166   b4.-\lheel [cis8-\ltoe dis8-\rtoe e8-\rheel] |
167   fis4.-\rtoe [e8-\rheel dis8-\rtoe cis8-\ltoe] |
168   dis4-\rtoe e4-\rheel e,4-\ltoe |
169   %19
170 }
171
172 breakmusic = \notes { 
173   %\time4/4;
174   r1
175 }
176
177
178 % these should be two separate scores...
179 \score{
180   \context Score <
181     \context PianoStaff <
182       \context Staff = treble {
183         \praeludium_right \breakmusic \fugaII_right }
184       \context Staff = bass { 
185         \praeludium_left \breakmusic \fugaII_left }
186     > 
187     \context Staff = pedal {
188       \praeludium_pedal \breakmusic \fugaII_pedal }
189   >
190
191   \paper {
192     \translator {
193     \VoiceContext
194     \name "VoiceOne";
195     ydirection = "1";
196     }
197     \translator {
198     \VoiceContext
199     \name "VoiceTwo";
200     ydirection = "-1";
201     }
202     \translator {
203     \VoiceContext
204     \name "VoiceThree";
205     ydirection = "1";
206     hshift = "1";
207     }
208     \translator {
209     \VoiceContext
210     \name "VoiceFour";
211     ydirection = "-1";
212     hshift = "1";
213     }
214    \translator { 
215      \StaffContext 
216      
217      \accepts VoiceFour;
218      \accepts VoiceThree;
219      \accepts VoiceTwo;
220      \accepts VoiceOne;
221    }
222    \translator { \OrchestralScoreContext }
223   }
224
225   \midi {
226     \tempo 4 =96; }
227 }