Frederick was a patron of music, and the court musicians he supported included C. P. E. Bach, Johann Joachim Quantz, Carl Heinrich Graun and Franz Benda. A meeting with Johann Sebastian Bach in 1747 in Potsdam led to Bach's writing "The Musical Offering". He was also a talented musician and composer in his own right. Playing the transverse flute, as well as composing 121 sonatas for flute and continuo, four concertos for flute and strings, three military marches, and seven arias. The "Hohenfriedberger Marsch" was allegedly written by Frederick to commemorate his victory in the Battle of Hohenfriedberg during the Second Silesian War.