contrafactum

Etymology
From.

Noun

 * 1)  The substitution of one text for another without substantial change to the music.
 * 2)  The use of a secular melody with a religious text.