Yes, he has published music books. His most famous work is "The Well-Tempered Clavier", a collection of preludes and fugues in all 24 major and minor keys. It is considered a cornerstone of Western classical music and is still studied and performed by musicians today.
Unlock the Melodies: The Remarkable Journey of Will Earhart - An Engaging English Quiz