About this piece

The Musical Offering (Musikalisches Opfer), BWV 1079, was compiled in Bach's last years and published in Leipzig in 1747; it is dedicated to Frederick II of Prussia. The print holds two ricercars, one in three parts and one in six, together with ten canons and a trio sonata, and the six-part ricercar is analysed as a triple fugue on three subjects. The occasion is documented: in May 1747 Bach travelled to Potsdam at Frederick's invitation and was given a theme, marked 'Thema Regium' in the print, on which he improvised a fugue; the six-part working-out followed after his return to Leipzig. The journey also concerned his family: his son Carl Philipp Emanuel Bach had served as harpsichordist in Frederick's court orchestra since 1738. Johann Sebastian Bach (1685–1750) belongs to the Baroque period.
Where this comes from: https://en.wikipedia.org/wiki/The_Musical_Offering