The 41-year-old musician made the revelation in his hour-long testimony for the chart-topping single's trial, in which Marvin Gaye's children Frankie and Nona claim the writer plagiarised their late father's hit 'Got To Give It Up'.
He explained: ''I had Earl Sweatshirt in one room and Miley Cyrus in the other. I was doing a bunch of country-sounding music with Miley.''
''It was like blending this country sound with this up-tempo groove.''
And while he admitted there were a variety of influences involved in the Robin Thicke hit, which he co-penned in mid-2012, the 'Happy' hitmaker insisted the Marvin Gaye single did not enter his mind during the songwriting process.
He continued: ''I must have been channelling that feeling, that late '70s feeling. Sometimes when you look back on your past work, you see echoes of people. But that doesn't mean that's what you were doing.''
''[Marvin Gaye] is one of the ones we look up to so much. This is the last place I want to be right now. The last thing you want to do as a creator is take something of someone else's when you love him.''
Looks like we need to learn basic humanity again.
'World Clique' was released on this day (August 7th) in 1990.
We have never been called out so hard by a meme in our lives.
Billie Eilish is back with possibly her most chilled out song yet. 'My Future' comes alongside a melancholy animated video starring Billie herself.
The 90s was the greatest decade for movie soundtracks. Change our minds.
Taylor Swift goes from lively pop to a more dreamy vibe with her newly released album 'Folklore', and she has unveiled an appropriate video for her...
Would a permanent hiatus be the best choice for the much-loved boyband?