Apple has agreed to pay musicians for songs played during its new music streaming service's trial period, after pop star Taylor Swift threatened to boycott it in a row over royalties. 

The singer said yesterday she would hold back her latest album 1989 from Apple Music in protest at Apple's "shocking and disappointing" decision not to pay for songs streamed during a three-month free trial period.

It prompted an Apple executive to tweet this morning that the musicians would be paid. 

Eddy Cue, senior vice president for internet software and services, wrote: "Apple will always make sure that artist are paid. AppleMusic will pay artist for streaming, even during customer's free trial period. We hear you @taylorswift13 and indie artists. Love, Apple."

Swift's standing against the consumer giant came after she withdrew her entire catalogue from popular music streaming service Spotify in November. 

In a letter published on her website yesterday, Swift said: "I'm sure you are aware that Apple Music will be offering a free three-month trial to anyone who signs up for the service". 

"I'm not sure you know that Apple Music will not be paying writers, producers, or artists for those three months. I find it to be shocking, disappointing, and completely unlike this historically progressive and generous company," she added. 

Swift said she was making a stand not for herself but for new artists or bands, young songwriters and producers who would not be paid for a quarter of a year's worth of plays. 

"These are not the complaints of a spoiled, petulant child. These are the echoed sentiments of every artist, writer and producer in my social circles who are afraid to speak up publicly because we admire and respect Apple so much," the singer stated. 

"We simply do not respect this particular call. I realise that Apple is working towards a goal of paid streaming. I think that is beautiful progress," she stated. 

"We know how astronomically successful Apple has been and we know that this incredible company has the money to pay artists, writers and producers for the three- month trial period ... even if it is free for the fans trying it out. Three months is a long time to go unpaid, and it is unfair to ask anyone to work for nothing." 

When she took her music off Spotify last year Swift argued that the streaming company's ad-supported free service undermines the premium service, which provides higher royalties for songwriters.