The only known musical source known until recently was due to a bookseller in Madrid, who found in the beginning of the 20th century a parchment with the seven Cantigas de Amigo by Martin Codax, six of them with the respective melodies. Codax was a (Galician? Portuguese?) troubadour from the court of King Dinis I of Portugal. In 1990, Prof. Harvey L. Sharrer (University of California at Santa Barbara) discovered at the Torre do Tombo in Lisbon a medieval document (the Pergaminho Sharrer) with seven Cantigas de Amor by King Dom Dinis, including its musical setting.