Bach worked as a church organist and composer for most of his life, so much of what he produced was religious music written for church services. At one point in his career, he was writing a new cantata every week. But he also composed secular music, often as a study in how to master a particular instrument.

