James McDonald Gayfer (26 March 1916 – 7 April 1997) was a Canadian bandmaster, clarinetist, composer, conductor, organist, military officer, and music educator.
His compositional output encompasses several orchestral works, including two symphonies, numerous works for band and solo piano, a modest amount of chamber music, and several songs, hymns, and choral works.
In 1944 his string quartet won the CPRS award and in 1947 his Six Translations from the Chinese for tenor and small orchestra won the Composers, Authors and Publishers Association of Canada competition.
In 1953, he was appointed to the post of Director of Music of the Band of The Canadian Guards, serving until 1961.
From then on, he served as a musical training officers of the Canadian Forces School of Music.
In 1960 he wrote The Canadian Infantryman, the official march past of the Canadian School of Infantry.
Although Gayfer's works remain unpublished, some of them have been recorded by a number of artists, including Howard Cable, David Mills, and the Edmonton Wind Ensemble.