Sacred music evolved from a form called a Gregorian chant.
Gregorian chants were named after the pope Gregory I and they are the official pieces of the catholic churches.
Originally handed down through oral tradition, later neumes, little ascending and descending symbols, were written above the words to suggest the contour of the melody.