Robin Thicke has performed a medley of songs on a keyboard in a Los Angeles court.

The singer was attending a copyright trial, to rule whether his 2013 hit Blurred Lines infringed on Marvin Gaye’s 1977 song Gotta Give It Up.

The late singer Marvin Gaye
The late singer Marvin Gaye (AP)

And according to E! News, Robin played songs on a keyboard which was placed on the witness stand.

It was reported that Robin played and sang hits including U2′s With Or Without You, The Beatles’ Let It Be, Bob Marley’s No Woman No Cry and Michael Jackson’s Man In the Mirror, to show similarities in chord arrangements.

Robin Thicke
Robin Thicke (JPA/AFF/Empics)

According to US reports, Robin also confirmed his previous admission that he was “high and drunk” during every single interview he did last year, adding: “I had a drug and alcohol problem for the year and I didn’t do a sober interview. So I don’t recall many things that I said.”

He said he had falsely told the media that he created the hit single, which was actually written by Pharrell Williams, because “the biggest hit of my career was written by somebody else and I was jealous and wanted credit”.