In vocal music, contrafactum is "the substitution of one text for another without substantial change to the music".
Categories
While translations meant for singing do not usually constitute intentional "substitution", examples of contrafacta which do constitute wholesale substitution of a different text include the following types.
Poems set to music
An existing tune already possessing secular or sacred words is given a new poem, as often happens in hymns; sometimes more than one new set of words is created over time. Examples:
The words of What Child Is This? were fitted to the tune of the folksong "Greensleeves".
The hymn tune "Dix" has been given several sets of words, among them As with Gladness Men of Old and For the Beauty of the Earth.
In Japan, the Scots song "Auld Lang Syne" has a new set of words in the song "Hotaru no hikari", and is used at graduation ceremonies. Another Western song, also reworked with different lyrics around the same period and used at graduation ceremonies, sometimes confused with "Hotaru", is "Aogeba tōtoshi".
Self-reworking
A lyricist might re-cast his/her own song with new lyrics, as in the case of Alan Jay Lerner with the number She Wasn't You / He Isn't You from the stage and film versions, respectively, of the musicalOn a Clear Day You Can See Forever.
"Comme d'habitude", music by Claude François and Jacques Revaux, original French lyrics by Claude François and Gilles Thibaut, rewritten as "My Way" with English lyrics by Paul Anka. Before Anka acquired the English-language rights to the song, David Bowie had written a different set of lyrics to the same tune, titled "Even a Fool Learns to Love".
The "Wilhelmus", parts of which form the national anthem of the kingdom of the Netherlands, suffers from the same fate, it is based on "The tune of Chartres', specified by the Beggars Songbook of 1576-77 is that of a French song about the siege of the city of Chartres by the Prince of Condé and the Huguenots in the beginning of 1568. This song with the title "Autre chanson de la ville de Chartres assiegee par le Prince de Condé, sur un chant nouveau", formed the base of "het Wilhelmus".
Songs which have been re-written by the same writer with different lyrics include:
"Candle in the Wind" and "Candle in the Wind 1997", self-reworking by Elton John, lyrics by Bernie Taupin
"How You Remind Me" and "Someday", self-reworking by Nickelback
"Jealous Guy" and "Child of Nature", self-reworking by John Lennon.
"Surfin' U.S.A." and "Fun, Fun, Fun" by The Beach Boys and "Sweet Little Sixteen" and "Johnny B. Goode" by Chuck Berry
While the above examples involve either music that is in the public domain or lyrics that were modified by the original lyricist, one obvious consideration in producing a contrafactum of someone else's music in modern times is the copyright of the original music or lyrics upon which the contrafactum would be based.