Student at the St. Thomas School under Bach's predecessor, Kuhnau, and later teacher of Graupner, Heinichen continued in Leipzig to study law at the university there. In 1710 he visited Italy, where, in 1711, he produced an important book on the thoroughbass that was later revised as Der Generalbass in der Composition (1728). After six years in Italy, Heinichen worked briefly for Prince Leopold of Anhalt-Cöthen (1717, the same year that Bach began his appointment in the same court). Heinichen soon became Kapellmeister to the Elector of Saxony and King of Poland in Dresden. Although he composed more than 150 sacred choral works, Heinichen is remembered today mainly for his contributions to music theory.