J. S. Bach · BWV 847 · 1722

Why Bach Still Works

An interactive Fugue in C minor, from the Well-Tempered Clavier, Book I

Three voices, one short tune, thirty-one bars. Press play, then pull the fugue apart: solo a voice, slow it down, watch the subject pass from hand to hand, turn the tune upside down, and test it against the rules of counterpoint that Bach bent and kept.

Sound starts only when you press a button.
Elias Gottlob Haussmann, portrait of J
Image unavailable: Elias Gottlob Haussmann, portrait of J
Elias Gottlob Haussmann, portrait of J. S. Bach, 1746, holding a riddle canon. Public domain. [11]

01The fugue, voice by voice

The notes below come from the Mutopia Project's LilyPond engraving of the Peters edition [1], parsed voice by voice and checked note for note against Mutopia's own MIDI file: all 751 notes in the MIDI file are matched by pitch and onset (three further notes are unisons between voices that the MIDI merges) [1]. Drag the roll to scrub; click the strip underneath to jump.

Soprano Alto Bass
Subject or answerCountersubjectEpisode or codettaBar numbers on the top strip

The plan of the fugue

Section labels follow the published analysis at Tonic Chord [2] and Paul Walker's Grove article on fugue [3]. Click a row to hear it.

BarsEventVoicesKey

What this fugue does not have: Walker notes it lacks augmentation, diminution, inversion and stretto [3], and Tonic Chord lists "Stretti: None" [2]. So the stretto and transformations in the lab below are demonstrations applied to Bach's subject, not quotations from the piece.

02Subject lab

The subject begins on the tonic C, leans on the dominant G at the downbeat of bar 2, and ends on the mediant E-flat at the downbeat of bar 3 [3]. The soprano's answer is tonal: its fourth note is changed from D to C to keep close to the home key [3]. Toggle the classic learned devices [3] and hear what happens.

Inversion here is a strict chromatic mirror around the first note; a composer writing a real inversion would usually adjust it to stay in the key. The stretto demo adds a second entry one bar later, a fifth lower.

Related reading from Lexicon Labs

Explore related ideas in our catalog.

03The rules, with a live checker

Counterpoint is the art of keeping lines independent while making them sound well together. The Open Music Theory textbook sums up the strict first-species rules: begin on a perfect consonance, use only consonances, prefer steps, never write parallel perfect consonances (P5 to P5 or P8 to P8), end on a unison or octave, and prefer contrary motion, which best preserves the independence of the lines [4]. It also warns against moving into a perfect interval by similar motion ("direct" fifths and octaves) [4].

Consonant intervals between two voices: unisons, thirds, fifths, sixths and octaves. Dissonant: seconds, fourths (against the bass), sevenths and the tritone [4][5].

Checker on Bach

Running...

Method: for every pair of voices, compare each moment where both voices change note; flag two perfect fifths or two octaves in a row moving in the same direction. Final chords are counted by their top note.

Your turn: write a counterpoint

The lower line is a fixed cantus firmus. Pick notes for the upper line. The starter line breaks rules on purpose; fix every red cell.

Self-check

04Well-tempered, not equal

Bach's title suggests a twelve-note tuning in which every key is usable, a "circulating" or well temperament [6]. For much of the 20th century people assumed he meant equal temperament; modern scholars mostly suggest some unequal well temperament instead [6]. Forkel reported that Bach tuned his own harpsichords and clavichords [6].

Equal temperament divides the octave into twelve equal semitones [7], so every major third is 400 cents, wider than a pure 5:4 third (386.3 cents, which is 1200 × log2 of 5/4). Werckmeister III narrows four fifths by a quarter comma and leaves the rest pure, so thirds differ from key to key [8]: C to E is 390 cents, but C-sharp to F is 408.

Listen for the slow beating in the held chord: wider thirds beat faster. Uses the cent values published for Werckmeister III [8]; C is the same pitch in both tunings.

Size of each major third

Bars: Werckmeister III. Black line: equal temperament, 400 cents. Dashed line: pure third, 386.3 cents (5:4).

05Bach and the "48"

Johann Sebastian Bach (1685 to 1750) was a German composer of the late Baroque [9]. In 1722, while court Kapellmeister at Köthen, he compiled a book of preludes and fugues in all 24 major and minor keys, rising chromatically from C major; a second book followed in Leipzig twenty years later [6]. The title page promises music "for the profit and use of musical youth desirous of learning, and especially for the pastime of those already skilled in this study" [6].

The only surviving autograph of Book I is Berlin, Staatsbibliothek, Mus. ms. Bach P 415: 45 leaves, dated 1722 on the title page, with later corrections in Bach's hand [10]. "Clavier" then meant harpsichord, clavichord or organ [6], which is why this page synthesizes a plucked, harpsichord-like tone.

Why it still works: the C minor fugue shows what Walker calls thematic tightness, with material from the subject or a countersubject in almost every voice at almost every moment [3], and its countersubject is written in invertible counterpoint so it sounds right above or below the subject [2]. The lines stay independent, yet the harmonic plan emerges from independent melodic lines, including passing dissonances.

Autograph title page, Das Wohltemperirte Clavier
Image unavailable: Autograph title page, Das Wohltemperirte Clavier
Autograph title page, Das Wohltemperirte Clavier. Public domain. [12]
Bach's autograph, first page of the Fugue in C-sharp minor, BWV 849, Book I
Image unavailable: Bach's autograph, first page of the Fugue in C-sharp minor, BWV 849, Book I
Bach's autograph, first page of the Fugue in C-sharp minor, BWV 849, Book I. Public domain. [13]
Bach's autograph, Fugue in A-flat major, BWV 886, Book II
Image unavailable: Bach's autograph, Fugue in A-flat major, BWV 886, Book II
Bach's autograph, Fugue in A-flat major, BWV 886, Book II. Public domain. [14]

Hearing the score

The C minor fugue is for three voices whose independence is kept strictly until the last two bars, when chords are added for fullness [3]. On the roll above you can see those final chords as stacked notes in bars 30 and 31, over the bass pedal C that begins in bar 29 [2].

06Sources

Nine of the fourteen sources are not Wikipedia: Mutopia, Tonic Chord, Grove (via Kunst der Fuge), Open Music Theory, Bach Digital and four Wikimedia Commons image records.

  1. Mutopia Project, J. S. Bach, Das Wohltemperierte Clavier I, Fuga II, BWV 847 (Edition Peters, engraved by Urs Metzger, CC BY-SA 4.0): piece page; LilyPond source and MIDI used for this page. https://www.mutopiaproject.org/cgibin/piece-info.cgi?id=1941
  2. Tonic Chord, "Bach: Prelude and Fugue No.2 in C minor, BWV 847 Analysis" (2018). https://tonic-chord.com/bach-prelude-and-fugue-no-2-in-c-minor-bwv-847-analysis/
  3. Paul Walker, "Fugue", Grove Music Online, excerpt "A classic fugue analysed", reproduced at Kunst der Fuge. https://kunstderfuge.com/theory/fugue.htm
  4. Mark Gotham and Kris Shaffer, "First-Species Counterpoint", Open Music Theory. https://viva.pressbooks.pub/openmusictheory/chapter/first-species/
  5. Wikipedia, "Counterpoint". https://en.wikipedia.org/wiki/Counterpoint
  6. Wikipedia, "The Well-Tempered Clavier". https://en.wikipedia.org/wiki/The_Well-Tempered_Clavier
  7. Wikipedia, "Equal temperament". https://en.wikipedia.org/wiki/Equal_temperament
  8. Wikipedia, "Werckmeister temperament". https://en.wikipedia.org/wiki/Werckmeister_temperament
  9. Wikipedia, "Johann Sebastian Bach". https://en.wikipedia.org/wiki/Johann_Sebastian_Bach
  10. Bach Digital (Bach-Archiv Leipzig), source record D-B Mus.ms. Bach P 415. https://www.bach-digital.de/receive/BachDigitalSource_source_00001361
  11. Wikimedia Commons, "Johann Sebastian Bach 1746.jpg" (Public domain). https://commons.wikimedia.org/wiki/File:Johann_Sebastian_Bach_1746.jpg
  12. Wikimedia Commons, "WK title.png" (Public domain). https://commons.wikimedia.org/wiki/File:WK_title.png
  13. Wikimedia Commons, "Bach-wtc1-fugue4-ms.jpg" (Public domain). https://commons.wikimedia.org/wiki/File:Bach-wtc1-fugue4-ms.jpg
  14. Wikimedia Commons, "DwtkII-as-dur-fuga.jpg" (Public domain). https://commons.wikimedia.org/wiki/File:DwtkII-as-dur-fuga.jpg