About this piece

Sinfonia No. 4, BWV 790, is a three-part keyboard piece in D minor by Johann Sebastian Bach (1685–1750), a composer of the Baroque era. It belongs to Bach's Inventions and Sinfonias, BWV 772–801: fifteen two-voice pieces titled Inventio and fifteen three-voice pieces titled Sinfonia, of which BWV 790 is the fourth. The set is tied closely to Bach's family. The earliest surviving related copy is the Clavierbüchlein compiled for his eldest son, Wilhelm Friedemann Bach, around 1720, where the pieces appear as "Praeambulum" and "Fantasia". The familiar version derives from Bach's own fair copy, headed "Aufrichtige Anleitung" (honest instruction), whose preface states that the pieces are intended to guide keyboard learners. That fair copy is dated 1723, during Bach's tenure as court Kapellmeister at Köthen. Each piece in the collection uses a different key, fifteen in all. The exact dates of composition and publication of the collection are not established.
Where this comes from: https://www.mutopiaproject.org/cgibin/piece-info.cgi?id=172