Skip to content

Commit

Permalink
J.S. Bach: Die Kunst der Fuge (BWV1080) - do not duplicate code of fu…
Browse files Browse the repository at this point in the history
…gues structure

Signed-off-by: Davide Madrisan <[email protected]>
  • Loading branch information
madrisan committed Oct 13, 2024
1 parent d5e8fa3 commit 50af6d3
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 568 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Global = {
}

\include "../macros.ly"
\include "../macros-fugues-structure.ly"

Soprano = \context Voice = "one" \relative c'' {
\voiceOne
Expand Down Expand Up @@ -476,16 +477,7 @@ Bass = \context Voice = "four" \relative c {
subsubtitle = \markup {
\center-column {
\line { "Four-voice fugue on principal subject" }
\line \normal-text \tiny \with-color #(rgb-color 1.0 1.0 1.0) {
\on-color \expositionColor \pad-markup #0.8 "Exposition ASBT"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \secondExpositionColor \pad-markup #0.8 "Second exposition ASBT"
\on-color \episodeColor \pad-markup #1 "2"
\on-color \subjectPresentationColor \pad-markup #0.8 "S"
\on-color \subjectPresentationColor \pad-markup #0.8 "B"
\on-color \episodeColor \pad-markup #1 "3"
\on-color \endColor \pad-markup #0.8 "T"
}
\fugueStructureBoxesI
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,19 +525,7 @@ Bass = \context Voice = "four" \relative c {
subsubtitle = \markup {
\center-column {
\line { "Four-voice fugue on principal subject, accompanied by a “French” style dotted rhythm" }
\line \normal-text \tiny \with-color #(rgb-color 1.0 1.0 1.0) {
\on-color \expositionColor \pad-markup #0.8 "Exposition BTAS" % bars 1-17
\on-color \episodeColor \pad-markup #1 "1" % bars 17-22
\on-color \secondExpositionColor \pad-markup #0.8 "Second exposition ASBT" % bars 23-42
\on-color \episodeColor \pad-markup #1 "2" % bars 42-44
\on-color \subjectPresentationColor \pad-markup #0.8 "SAB" % bars 45-57
\on-color \episodeColor \pad-markup #1 "3" % bars 57-60
\on-color \subjectPresentationColor \pad-markup #0.8 "B" % bars 61-65
\on-color \episodeColor \pad-markup #1 "4" % bars 65-68
\on-color \subjectPresentationColor \pad-markup #0.8 "T" % bars 69-73
\on-color \episodeColor \pad-markup #1 "5" % bars 73-78
\on-color \endColor \pad-markup #0.8 "S" % bars 79-
}
\fugueStructureBoxesII
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,20 +380,7 @@ Bass = \context Voice = "four" \relative c {
subsubtitle = \markup {
\center-column {
\line { "Four-voice fugue on principal subject in inversion, employing intense chromaticism" }
\line \normal-text \tiny \with-color #(rgb-color 1.0 1.0 1.0) {
\on-color \expositionColor \pad-markup #0.8 "Exposition TASB"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \subjectPresentationColor \pad-markup #0.8 "S"
\on-color \episodeColor \pad-markup #1 "2"
\on-color \subjectPresentationColor \pad-markup #0.8 "T"
\on-color \episodeColor \pad-markup #1 "3"
\on-color \subjectPresentationColor \pad-markup #0.8 "T"
\on-color \episodeColor \pad-markup #1 "4"
\on-color \subjectPresentationColor \pad-markup #0.8 "S"
\on-color \episodeColor \pad-markup #1 "5"
\on-color \subjectPresentationColor \pad-markup #0.8 "BAST"
\on-color \endColor \pad-markup #0.8 "Coda"
}
\fugueStructureBoxesIII
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -725,19 +725,7 @@ Bass = \context Voice = "four" \relative c {
subsubtitle = \markup {
\center-column {
\line { "Four-voice fugue on principal subject in inversion, employing counter-subjects" }
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition SATB"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \secondExpositionColor \pad-markup #0.8 "Second exposition SATB"
\on-color \episodeColor \pad-markup #1 "2"
\on-color \subjectPresentationColor \pad-markup #0.8 "BT"
\on-color \episodeColor \pad-markup #1 "3"
\on-color \subjectPresentationColor \pad-markup #0.8 "AS"
\on-color \episodeColor \pad-markup #1 "4"
\on-color \subjectPresentationColor \pad-markup #0.8 "T•B•SA"
\on-color \episodeColor \pad-markup #1 "5"
\on-color \subjectPresentationColor \pad-markup #0.8 "TA"
}
\fugueStructureBoxesIV
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,21 +555,7 @@ Bass = \context Voice = "four" \relative c {
subsubtitle = \markup {
\center-column {
\line { "Four-voice fugue with many stretto entries" }
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition ABST"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \secondExpositionColor \pad-markup #0.8 "Second exposition STBA"
\on-color \episodeColor \pad-markup #1 "2"
\on-color \subjectStrettoColor \pad-markup #0.8 "Stretto BS"
\on-color \subjectStrettoColor \pad-markup #0.8 "TA"
\on-color \subjectStrettoColor \pad-markup #0.8 "BT"
\on-color \episodeColor \pad-markup #1 "3"
\on-color \subjectStrettoColor \pad-markup #0.8 "SA"
\on-color \episodeColor \pad-markup #1 "4"
\on-color \subjectStrettoColor \pad-markup #0.8 "ST"
\on-color \subjectStrettoColor \pad-markup #0.8 "TA"
\on-color \endColor \pad-markup #0.8 "BA"
}
\fugueStructureBoxesV
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,25 +465,7 @@ Bass = \context Voice = "four" \relative c {
subsubtitle = \markup {
\center-column {
\line { "[per Diminutionem] in Stilo Francese" }
\line \normal-text \tiny \with-color \white {
\on-color \subjectStrettoColor \pad-markup #0.8 "Stretto BSA"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \subjectStrettoColor \pad-markup #0.8 "TAS"
\on-color \episodeColor \pad-markup #1 "2"
\on-color \subjectStrettoColor \pad-markup #0.8 "BTS"
\on-color \subjectPresentationColor \pad-markup #0.8 "T"
\on-color \subjectStrettoColor \pad-markup #0.8 "AT"
\on-color \episodeColor \pad-markup #1 "3"
\on-color \subjectStrettoColor \pad-markup #0.8 "TASBT"
\on-color \episodeColor \pad-markup #1 "4"
\on-color \subjectPresentationColor \pad-markup #0.8 "A"
\on-color \episodeColor \pad-markup #1 "5"
\on-color \subjectStrettoColor \pad-markup #0.8 "BT"
\on-color \episodeColor \pad-markup #1 "6"
\on-color \subjectStrettoColor \pad-markup #0.8 "SAT"
\on-color \episodeColor \pad-markup #1 "7"
\on-color \subjectStrettoColor \pad-markup #0.8 "TSA"
}
\fugueStructureBoxesVI
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,16 +425,7 @@ Bass = \context Voice = "four" \relative c {
subsubtitle = \markup {
\center-column {
\line { "per Augmentationem et Diminutionem" }
\line \normal-text \tiny \with-color \white {
\on-color \subjectStrettoColor \pad-markup #0.8 "Stretto TSABAT"
\on-color \subjectStrettoColor \pad-markup #0.8 "SAT"
\on-color \subjectStrettoColor \pad-markup #0.8 "TB"
\on-color \subjectStrettoColor \pad-markup #0.8 "ATSBA"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \subjectStrettoColor \pad-markup #0.8 "ATSSAATB"
\on-color \subjectStrettoColor \pad-markup #0.8 "SAAT"
\on-color \endColor \pad-markup #0.8 "Coda"
}
\fugueStructureBoxesVII
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ Soprano = \context Voice = "one" \relative c'' {
| a d g,2%\prallmordent
%185
| f4 g a8 g a4
| \unHighlightSubject d,1~ }
| \once\override Tie.staff-position = #-3
\unHighlightSubject d,1~ }
| d16[ b cis d] e f g e cis4.\trill d8
| d2\fermata b'\rest
}
Expand Down Expand Up @@ -846,34 +847,9 @@ Bass = \context Voice = "four" \relative c {
subsubtitle = \markup {
\center-column {
\line { "[Triple Fugue]" }
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition 1 A1 B1 S1"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \subjectStrettoColor \pad-markup #0.8 "Stretto A1 B1"
\on-color \episodeColor \pad-markup #1 "2"
\on-color \subjectPresentationColor \pad-markup #0.8 "B1"
}
\line \normal-text \tiny \with-color \white {
\on-color \secondExpositionColor \pad-markup #0.8 "Exposition 2 S1 A2 B1 S2 A1 B2"
\on-color \episodeColor \pad-markup #1 "3"
\on-color \subjectPresentationColor \pad-markup #0.8 "S1 A2"
\on-color \subjectPresentationColor \pad-markup #0.8 "B1 S2"
\on-color \episodeColor \pad-markup #1 "4"
\on-color \subjectPresentationColor \pad-markup #0.8 "S1 A2"
\on-color \subjectPresentationColor \pad-markup #0.8 "S1 A2"
}
\line \normal-text \tiny \with-color \white {
\on-color \thirdExpositionColor \pad-markup #0.8 "Exposition 3 A3 B3 S3"
\on-color \episodeColor \pad-markup #1 "5"
\on-color \subjectPresentationColor \pad-markup #0.8 "A1"
\on-color \subjectPresentationColor \pad-markup #0.8 "B1"
\on-color \episodeColor \pad-markup #1 "6"
\on-color \subjectPresentationColor \pad-markup #0.8 "S1 A2 B3"
\on-color \subjectPresentationColor \pad-markup #0.8 "A1 B2 S3"
\on-color \subjectPresentationColor \pad-markup #0.8 "B1 S2 A3"
\on-color \subjectPresentationColor \pad-markup #0.8 "B1 S2 A3"
\on-color \subjectPresentationColor \pad-markup #0.8 "A2 S1 B3"
}
\fugueStructureBoxesVIII_lineone
\fugueStructureBoxesVIII_linetwo
\fugueStructureBoxesVIII_linethree
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,26 +614,7 @@ Bass = \context Voice = "four" \relative c {
Contrapunctus IX
}
subsubtitle = \markup {
\center-column {
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition A1 S1 B1 T1"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \subjectPresentationColor \pad-markup #0.8 "S2 T1"
\on-color \episodeColor \pad-markup #1 "2" % F major
\on-color \subjectPresentationColor \pad-markup #0.8 "T2 A1" % bar 45
\on-color \episodeColor \pad-markup #1 "3" % D minor
\on-color \subjectPresentationColor \pad-markup #0.8 "A2 B1" % bar 59
\on-color \episodeColor \pad-markup #1 "4" % A minor
\on-color \subjectPresentationColor \pad-markup #0.8 "T2 A1" % bar 73
\on-color \episodeColor \pad-markup #1 "5" % D minor
\on-color \subjectPresentationColor \pad-markup #0.8 "B2 S1" % bar 89
\on-color \episodeColor \pad-markup #1 "6" % G minor
\on-color \subjectPresentationColor \pad-markup #0.8 "T2 A1" % bar 99
\on-color \episodeColor \pad-markup #1 "7" % D minor
\on-color \subjectPresentationColor \pad-markup #0.8 "A2 T1" % bar 119
\on-color \endColor \pad-markup #0.8 "Coda"
}
}
\fugueStructureBoxesIX
}
}
\layout {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,28 +646,8 @@ Bass = \context Voice = "four" \relative c {
}
subsubtitle = \markup {
\center-column {
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition 1 A1 T1 B1 S1"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \subjectStrettoColor \pad-markup #0.8 "Stretto A1 T1" % bar 14-17
\on-color \secondExpositionColor \pad-markup #0.8 "Exposition 2 S2 T2 B3 A2" % bar 23-38
\on-color \episodeColor \pad-markup #1 "2"
}
\line \normal-text \tiny \with-color \white {
\on-color \subjectPresentationColor \pad-markup #0.8 "T1 A2" % bar 44
\on-color \episodeColor \pad-markup #1 "3"
\on-color \subjectPresentationColor \pad-markup #0.8 "A1 B2" % bar 52
\on-color \episodeColor \pad-markup #1 "4"
\on-color \subjectPresentationColor \pad-markup #0.8 "T2 S1" % bar 66
\on-color \episodeColor \pad-markup #1 "5"
\on-color \subjectPresentationColor \pad-markup #0.8 "S2 A1 B1" % bar 75
\on-color \episodeColor \pad-markup #1 "6"
\on-color \subjectPresentationColor \pad-markup #0.8 "B2 A1 S1" % bar 84
\on-color \episodeColor \pad-markup #1 "7"
\on-color \subjectPresentationColor \pad-markup #0.8 "B1 T1 S2" % bar 103
\on-color \episodeColor \pad-markup #1 "8"
\on-color \subjectPresentationColor \pad-markup #0.8 "T1 A1" % bar 115
}
\fugueStructureBoxesX_lineone
\fugueStructureBoxesX_linetwo
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,35 +1075,9 @@ Bass = \context Voice = "four" \relative c {
}
subsubtitle = \markup {
\center-column {
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition 1/a A1 S1 B1 T1"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \subjectPresentationColor \pad-markup #0.8 "S1" % bar 22
\on-color \secondExpositionColor \pad-markup #0.8 "Exposition 2 A2 T2 B2 S2" % bar 27
\on-color \episodeColor \pad-markup #1 "2"
\on-color \subjectPresentationColor \pad-markup #0.8 "B2" % bar 67
}
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition 1/b T1 S1 B1 A1" % bar 71
\on-color \subjectPresentationColor \pad-markup #0.8 "B2 T3" % bar 89
\on-color \subjectPresentationColor \pad-markup #0.8 "A2 S3" % bar 93
\on-color \subjectPresentationColor \pad-markup #0.8 "A1" % bar 101
\on-color \subjectPresentationColor \pad-markup #0.8 "A3 T2" % bar 105
\on-color \subjectPresentationColor \pad-markup #0.8 "S2 A3" % bar 113
\on-color \episodeColor \pad-markup #1 "3"
\on-color \subjectPresentationColor \pad-markup #0.8 "B1" % bar 132
\on-color \subjectPresentationColor \pad-markup #0.8 "T2 A3" % bar 136
\on-color \episodeColor \pad-markup #1 "4"
}
\line \normal-text \tiny \with-color \white {
\on-color \subjectPresentationColor \pad-markup #0.8 "A3 T1 S2" % bar 145
\on-color \episodeColor \pad-markup #1 "5"
\on-color \subjectPresentationColor \pad-markup #0.8 "A1 S1" % bar 158
\on-color \subjectPresentationColor \pad-markup #0.8 "B1 T1" % bar 164
\on-color \episodeColor \pad-markup #1 "6"
\on-color \subjectPresentationColor \pad-markup #0.8 "B2 T3 A1" % bar 174
\on-color \subjectPresentationColor \pad-markup #0.8 "B3 T2 S2" % bar 179
}
\fugueStructureBoxesXI_lineone
\fugueStructureBoxesXI_linetwo
\fugueStructureBoxesXI_linethree
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,7 @@ Bass = \context Voice = "four" \relative c {
}
subsubtitle = \markup {
\center-column {
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition 1 B1 T1 A1 S1"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \secondExpositionColor \pad-markup #0.8 "Exposition 2 S2 A2 T2 B2" % bar 21-45
\on-color \episodeColor \pad-markup #1 "2"
\on-color \subjectPresentationColor \pad-markup #0.8 "A2" % bar 50
\on-color \subjectPresentationColor \pad-markup #0.8 "S2" % bar 54 (incomplete subject)
\on-color \endColor \pad-markup #0.8 "Coda"
}
\fugueStructureBoxesXII_I
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,7 @@ Bass = \context Voice = "four" \relative c {
}
subsubtitle = \markup {
\center-column {
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition 1 S1 A1 T1 B1"
\on-color \episodeColor \pad-markup #1 "1"
\on-color \secondExpositionColor \pad-markup #0.8 "Exposition 2 B2 T2 A2 S2" % bar 21-45
\on-color \episodeColor \pad-markup #1 "2"
\on-color \subjectPresentationColor \pad-markup #0.8 "T2" % bar 50
\on-color \subjectPresentationColor \pad-markup #0.8 "B2" % bar 54 (incomplete subject)
\on-color \endColor \pad-markup #0.8 "Coda"
}
\fugueStructureBoxesXII_II
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,17 +385,7 @@ Bass = \context Voice = "four" \relative c {
}
subsubtitle = \markup {
\center-column {
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition 1 A B S"
\on-color \episodeColor \pad-markup #1 "1" % bar 13-19
\on-color \subjectPresentationColor \pad-markup #0.8 "A" % bar 20
\on-color \episodeColor \pad-markup #1 "2" % bar 24
\on-color \secondExpositionColor \pad-markup #0.8 "Exposition 2 B S A" % bar 29-41
\on-color \episodeColor \pad-markup #1 "3" % bar 41-47
\on-color \subjectPresentationColor \pad-markup #0.8 "A" % bar 47-52
\on-color \episodeColor \pad-markup #1 "4" % bar 52-61
\on-color \endColor \pad-markup #0.8 "Final presentation B S"
}
\fugueStructureBoxesXIII_I
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Alto = \context Voice = "two" \relative c' {
d'
%70
| a_~ \tuplet 3/2 { a8 fis e } \tuplet 3/2 { d c bes! } a8.*8/9 a'16*4/3
| a2.\fermata
| a2._\fermata
\bar "|."
}

Expand Down Expand Up @@ -404,17 +404,7 @@ Bass = \context Voice = "four" \relative c {
}
subsubtitle = \markup {
\center-column {
\line \normal-text \tiny \with-color \white {
\on-color \expositionColor \pad-markup #0.8 "Exposition 1 S A B"
\on-color \episodeColor \pad-markup #1 "1" % bar 13-19
\on-color \subjectPresentationColor \pad-markup #0.8 "S" % bar 20
\on-color \episodeColor \pad-markup #1 "2" % bar 24
\on-color \secondExpositionColor \pad-markup #0.8 "Exposition 2 A B S" % bar 29-41
\on-color \episodeColor \pad-markup #1 "3" % bar 41-47
\on-color \subjectPresentationColor \pad-markup #0.8 "S" % bar 47-52
\on-color \episodeColor \pad-markup #1 "4" % bar 52-61
\on-color \endColor \pad-markup #0.8 "Final presentation A B"
}
\fugueStructureBoxesXIII_II
}
}
}
Expand Down
Loading

0 comments on commit 50af6d3

Please sign in to comment.