The technique of digitally copying a piece of an existing recording and placing this "sample" into a new recording is known as sampling....
2022/02/03/music-sampling-and-the-defence-of-doctrine-of-fair-use/