The union of words and music in medieval poetry