DUNFERMLINE is one of the "common" tunes from Andro Hart's psalter The CL Psalms of David, Edinburgh (l615)–a "common" tune was one that was not matched with a specific text in a songbook. Millar Patrick, author of Four Centuries of Scottish Psalmody (London, 1949) and The Story of the Church's Song (1927, rev. 1962), attributes this tune to John Angus, one-time precentor at the Dunfermline Abbey (Scotland) during the Reformation. The tune takes its name from that abbey.
Sing DUNFERMLINE in unison or in harmony with the sense of two long lines for each stanza.
--Psalter Hymnal Handbook, 1987