Anthem for Queen Elizabeth’s funeral contained ‘hidden Unionist code’ claim Scottish nationalists

Sir James, who was a high-profile supporter of the Union ahead of the 2014 independence referendum, said he and Ms Weir, who was born in England to Scottish parents, were considered “the Wrong Kind of Scots”.

He wrote: “One patriot tweeted angrily that I ‘have to move back to England’ because I’m ‘not a Scottish citizen’. 

“Some others were annoyed at the title of my anthem ‘Who Shall Separate Us?’ implying that this contained some dastardly hidden Unionist code designed to mess with Scottish brains. 

“They seemed unaware that St Paul’s Letter to the Romans was short on advice on Scottish constitutional rearrangements.”

A former composer-conductor of the BBC Philharmonic orchestra, Sir James said that it had been a “great honour” to write the anthem in tribute to the late Queen.

He wrote the piece a decade ago but its existence was a secret until the order of service was published on Sunday evening.

“I was told that this passage from Romans 8 was important to the Queen, as it gets right to the heart of her relationship with Jesus,” he said. 

“Her Christian faith was an inspiration to millions, perhaps billions, around the world, and her ability to communicate it with devotion and pastoral insight in her Christmas messages and on other occasions was the focus of significance in her life and example. 

“I have rarely reflected so deeply on a text, both while I was setting it and in the years since.”

Donald Cameron, constitution spokesman for the Scottish Tories, said it was a “sorry reflection of the SNP’s obsession with independence” that “zealous nationalists” viewed virtually almost everything “through the prism of the constitution”.

He added: “The fact that a new anthem written for Her Majesty’s funeral produced a backlash for its supposedly pro-union message would be comical if it wasn’t so sad.

“As one of the country’s most distinguished composers, James MacMillan deserves far better than this.”

The SNP was approached for comment.