Despite the moral and legal concerns surrounding sampling, there have been instances where sampling has been widely accepted by the original artist, artist being sampled and public.
The most popular technique to eliminate controversy is by clearing samples, which involves both parties involved communicating with each other to set the terms of the sample being used prior to the song being released. Usually, a set amount or percentage of revenue that the song earns is paid to the copyright holder of the song being sampled and the original artist may even be credited in the new song. An example of this is “Stronger” by Kanye West sampling “Harder, Better, Faster, Stronger” by Daft Punk.
In other rarer instances, the artist being sampled publically says they are completely fine with their music being used, which reduces the odds of the party sampling the music from being sued. For instance, rapper A$AP Rocky and producer Clams Casino have sampled Imogen Heap on multiple records togethers such as “Bass”. When asked about Imogen Heap’s view on her music being sampled, she said “I love being sampled and I love when people collaborate with my music. I love that they have a life of their own.”
Overall, this shows both the moral and legal aspects of sampling “properly”, where it is morally accepted when the artist being sampled states they are fine with it and it is legally proper when the samples are cleared beforehand.