Masonic music has been defined as "music used in connection with the ritual and social functions of freemasonry". Two major types of music used in masonic lodges are lodge songs, played to keyboard accompaniment before or after meetings, or during meals; and music written to accompany specific masonic ceremonies and events. Because the number 3 and the letter 'B' are of particular significance to freemasonry, music written in the keys of C minor or E flat major, which both involve 3 flats, (whose symbol '♭' resembles the lowercase letter 'b'), in their key signatures has been considered especially appropriate for masonic ceremonial music.
Music especially composed for masonic rituals began to be published in the 18th century, including music written by Georg Benda, Ignaz Pleyel, François-André Danican Philidor, Johann Gottlieb Naumann and Christian Gottlob Neefe. Anthems and other works for use in masonic lodges were written by, amongst others, in the 18th century William Boyce, in the 19th century Albert Lortzing, and in the 20th century Jean Sibelius.
The music written for masonic use by Wolfgang Amadeus Mozart is among the best-known of its kind. It includes the Maurerische Trauermusik (Masonic Funeral Music) and a number of songs and cantatas. Mozart's opera The Magic Flute and his incidental music to Thamos, King of Egypt also have masonic connections.
Lodges sometimes used the music of other composers for their proceedings (with or without permission) often adding different words. For example, in 1810, Ludwig van Beethoven, who is not documented as a mason, wrote to his friend the doctor Franz Wegeler: "I was told you were singing a song of mine in the Masonic Lodge... Send it to me, I am going to replace it and you won't be sorry." Wegeler himself published two masonic texts suggesting melodies of Beethoven (the Opferlied WoO 126 and the song Der freie Mann WoO 117) which could be used for them.
- Hill (1980), 753
- Sichrovsky (2009)
- Hill (1980), 754–755
- Abert (2007), 780–782
- Hill (1980), 754
- Nettl (1994), 63
- Abert, Herman, tr.Stewart Spencer (2007). W. A. Mozart. New Haven and London: Yale University Press. ISBN 9780300072235
- Hill, Cecil (1980). "Masonic music", in The New Grove Dictionary of Music and Musicians, ed. Stanley Sadie, vol. 11, 753–756
- Nettl, Paul (1994). The Beethoven Encyclopedia. New York: Citadel Press. ISBN 9780806515397
- Sichrovsky, Heinz (2009). Liner notes to Mozart, W.A.: Masonic Music (Complete), Naxos Records CD 8.570897.