This book teaches Baroque compositional techniques through writing and improvisation exercises and analysis of repertoire examples. It provides readers with a historical outlook by focusing largely on principles taught in treatises from the period 1680-1780. This expanded edition includes new sections with keyboard exercises that provide training in Partimento performance as it was practiced at the time, helping students master Baroque style from the inside. While the focus of the book is on fugue, it also treats chorale preludes, stylized dances, inventions, and trio sonatas. The volume is divided into two parts--basic and advanced-- which could be taught in a two-semester sequence. There are various options to introduce material from Part II into Part I for a one-semester course.