3 filename
= "praeludium-fuga-E.ly"
4 title
= "praeludium and fuga in E-major"
6 composer
= "Johann Sebastian Bach (1685-1750)"
8 copyright
= "public domain"
13 Praeludium 3 bar excerpt,
14 2nd fuga transposed subject -- 4 bar excerpt.
15 We try to imitate the Griepenkerl/Keller edition which
16 gives the best approximation to Bach's original layout
20 purpose of this file is testing:
21 * real-life collisions
22 * multi-voice input --- splitting?
30 praeludiumCommands = \notes {
35 praeludiumRight = \notes {
39 % 13 -- how to type -- where to split -- this more neatly?
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'' {
51 this is a diversion from the Griepenkerl/Keller
52 edition a hack to avoid collisions
57 \context Voice = II \relative c' { \stemDown
60 r4 fis \shiftOff gis gis |
67 praeludiumLeft = \notes \relative c {
73 \context Voice = two { r4 }
74 \context Voice = one { \stemUp s4 dis' cis cis ~ |
75 [cis8 a d cis] [bis gis] cis4 |
77 \context Voice = one { \stemUp bis2 }
78 \context Voice = three { \stemUp \shiftOn r4 gis ~ [gis8 gis] ~ \stemDown \shiftOff gis4 |
81 % { \stemUp \shiftOn s4 fis4 e}
82 % a quick hack to avoid some collisons
83 \context Voice = four { \stemDown \shiftOn s4 fis4 e}
84 \context Voice = two { \stemDown s4 dis4 cis4 }
89 praeludiumPedal = \notes \relative c{
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] |
101 fugaIICommands = \notes{
103 \key e \major % E-major
106 fugaIIRight = \notes \relative c'' {
112 \context Voice = VA { \stemUp [b8 fis8] b4 }
113 \context Voice = VB { \stemDown fis2 }
116 \context Staff \notes\relative c''<
118 \property Voice.NoteColumn \override #'horizontal-shift = #0
124 \property Voice.NoteColumn \override #'horizontal-shift = #1
127 \context Voice=three {
128 \property Voice.NoteColumn \override #'horizontal-shift = #2
132 \context Voice=four {
133 \stemDown\slurDown\tieDown
134 \property Voice.NoteColumn \override #'horizontal-shift = #-1
141 \context Voice = one { dis2 dis4 |
144 \context Voice = three { \stemUp \shiftOn [b8 fis] b2 ~ |
147 \context Voice = two { \stemDown fis2. ~ |
154 fugaIILeft = \notes {
160 \context Voice = two { \stemDown b2 \stemUp ais4 |
162 \context Voice = two { \stemDown s2 e4 |
170 fugaIIPedal = \notes \relative c {
175 dis4.-\ltoe e8-\rtoe cis4 |
176 b4.-\lheel [cis8-\ltoe dis8-\rtoe e8-\rheel] |
177 fis4.-\rtoe [e8-\rheel dis8-\rtoe cis8-\ltoe] |
178 dis4-\rtoe e4-\rheel e,4-\ltoe |
182 breakmusic = \notes {
188 % these should be two separate scores...
191 \context PianoStaff <
192 \context Staff = treble {
193 \property Score.midiInstrument = "church organ"
194 \praeludiumRight \breakmusic \fugaIIRight }
195 \context Staff = bass {
196 \praeludiumLeft \breakmusic \fugaIILeft }
198 \context Staff = pedal {
199 \praeludiumPedal \breakmusic \fugaIIPedal }
204 \translator { \OrchestralScoreContext }