Medieval music consists of songs, instrumental pieces, and liturgical music from about 500 AD to 1400 AD. Medieval music was an era of western music, including liturgical music (also known as sacred) used for the church, and secular music, non-religous music.
Medieval music includes solely vocal music, such as Gregorian Chant and choral music (music for group of singers), solely instrumental music, and music that uses both voices and instrumenta(typically with the instruments)
During the Medieval period the foundation was laid for the music notation and music practice that would shape Western music into the norms that developed during the common-practice era, a period of shared music practices which encompassed the Baroques Music composers from 1600 to 1750 such as J.S. Bach.
A Quote From J.S. Bach:
Music is an agreeable harmony for the honor of God and the permissible delights of the soul. There's nothing remarkable about it. All one has to do is hit the right keys at the right time and the instrument plays itself. J.S. Bach, On The Importance of Music