Johann Philipp Kirnberger (Kernberg) was a musician, composer (primarily of fugues), and music theorist. He was a student of Johann Sebastian Bach. According to Ingeborg Allihn, Kirnberger played a significant role in the intellectual and cultural exchange between Germany and Poland in the mid-18th century. Between 1741 and 1751 Kirnberger lived and worked in Poland for powerful magnates including Lubomirski, Poninski, and Rzewuski before ending up at the Benedictine Cloister in Lvov (then part of Poland). He spent much time collecting Polish national dances and compiled them in his treatise Die Charaktere der Taenze (Allihn 1995, 211). He became a violinist at the court of Frederick II of Prussia in 1751. He was the music director to the Prussian Princess Anna Amalia from 1758 until his death. Kirnberger greatly admired J.S. Bach, and sought to secure the publication of all of Bach's chorale settings, which finally appeared after Kirnberger's death; see Kirnberger chorale preludes (BWV 690–713). Many of Bach's manuscripts have been preserved in Kirnberger's library (the "Kirnberger collection").