2 filename = "praeludium-fuga-E.ly";
3 title = "praeludium and fuga in E-major";
5 composer = "Johann Sebastian Bach (1685-1750)";
7 copyright = "public domain";
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
19 purpose of this file is testing:
20 * real-life collisions
21 * multi-voice input --- splitting?
29 praeludium_commands = \notes {
32 praeludiumRight = \notes {
36 % 13 -- how to type -- where to split -- this more neatly?
38 \context Voice = I \relative c'' { \stemup r4 dis4 e4. e8 ~ |
39 \shifton e4 [d8 fis8] \shiftoff gis4 ~ [gis8 fis16 e ] |
40 fis4 ~ [fis8 e16 dis] e4 r8 e8 }
41 \context Voice = III \relative c'' { \stemup \shifton r4 bis cis \shiftoff cis |
42 a' ~ [a16 gis a b] \shifton dis,4 cis ~ |
43 [cis8 dis16 ais] bis4 cis r8 b }
44 \context Voice = IV \relative c'' {
48 this is a diversion from the Griepenkerl/Keller
49 edition; a hack to avoid collisions
54 \context Voice = II \relative c' { \stemdown
57 r4 fis \shiftoff gis gis |
64 praeludiumLeft = \notes \relative c {
70 \context Voice = two { r4 }
71 \context Voice = one { \stemup s4 dis' cis cis ~ |
72 [cis8 ( a \translator Staff = treble \stemdown \shifton d ) cis]
73 \translator Staff = bass
77 \context Voice = one { \stemup bis2 }
78 \context Voice = three {
79 \property Voice.dynamicDirection = \down
80 \stemup \shifton r4 gis ~ [gis8 \< gis] ~ \stemdown \shiftoff gis4 |
81 a4. fis8 \! gis4. a8 ~ |
83 % { \stemup \shifton s4 fis4 e}
84 % a quick hack to avoid some collisons
85 \context Voice = four { \stemdown \shifton s4 fis4 e}
86 \context Voice = two { \stemdown s4 dis4 cis4 }
93 fugaII_commands = \notes{
97 fugaIIRight = \notes \relative c'' {
103 \context Voice = VA { \stemup [b8 fis8] b4 }
104 \context Voice = VB { \stemdown fis2 }
107 \context Staff \notes\relative c''<
109 \property Voice.horizontalNoteShift=0
110 \property Voice.verticalDirection=1
114 \property Voice.verticalDirection=1
115 \property Voice.horizontalNoteShift=1
118 \context Voice=three {
119 \property Voice.horizontalNoteShift=2
120 \property Voice.verticalDirection=1
123 \context Voice=four {
124 \property Voice.verticalDirection=-1
125 \property Voice.horizontalNoteShift=-1
132 \context Voice = one { dis2 dis4 |
135 \context Voice = three { \stemup \shifton [b8 fis] b2 ~ |
138 \context Voice = two { \stemdown fis2. ~ |
145 fugaIILeft = \notes {
151 \context Voice = one { \stemdown
152 \grace { [c16 ( cis dis] }
153 \relative b, < )b2 dis fis a b cis dis> \stemup ais4 |
155 \context Voice = two { \stemdown s2 e4 |
163 fugaIIPedal = \notes \relative c {
168 dis4.-\ltoe e8-\rtoe cis4 |
169 b4.-\lheel [cis8-\ltoe dis8-\rtoe e8-\rheel] |
170 fis4.-\rtoe [e8-\rheel dis8-\rtoe cis8-\ltoe] |
171 dis4-\rtoe e4-\rheel e,4-\ltoe |
177 % these should be two separate scores...
179 \context Score \notes <
180 \context PianoStaff <
181 \context Staff = treble {
182 \property Score.midiInstrument = "church organ"
183 \praeludiumRight r1 \fugaIIRight }
184 \context Staff = bass {
185 \praeludiumLeft r1 \fugaIILeft }
187 \context Staff = pedal \relative c <
194 r4 fis,4-\ltoe e4.-\lheel e'8-\rheel |
195 fis4.-\rtoe fis8-\rtoe fis4-\rtoe [e8-\ltoe a-\rtoe] |
196 dis,4-\ltoe gis-\rtoe [cis,8-\ltoe( b!-\lheel ais-\rtoe gis-\ltoe ~ ] |
198 \notes { gis8 r4. )c2 }
208 \translator { \OrchestralScoreContext }